Skip to content

row-rule-* properties should inherit to an anonymous fieldset content box #11095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kbabbitt opened this issue Mar 4, 2025 · 2 comments
Open

Comments

@kbabbitt
Copy link

kbabbitt commented Mar 4, 2025

What is the issue with the HTML Standard?

The <fieldset> element is specified to generate an anonymous fieldset content box which inherits a set of properties from the <fieldset> element. Among that list of properties is column-rule which will then apply if the content box is a grid, flexbox, or multicol container.

CSS Gap Decorations introduces row-rule and subproperties row-rule-width, row-rule-style, and row-rule-color which function exactly the same as the corresponding column-rule-* properties, but in the row direction. As such, I suggest adding row-rule to the list of properties that inherit from a <fieldset> to its anonymous fieldset content box.

@annevk
Copy link
Member

annevk commented Mar 4, 2025

cc @whatwg/css @zcorpan

@zcorpan
Copy link
Member

zcorpan commented Apr 9, 2025

Gecko: https://searchfox.org/mozilla-central/rev/9c6e9ca72d4a59267d985fb35ba259fb937c8503/layout/style/res/forms.css#12

These rules exist in Gecko that are not in the spec:

  overflow-clip-box: inherit;
  resize: inherit;
  box-decoration-break: inherit;
  content: inherit;
  -moz-box-orient: inherit;
  -moz-box-direction: inherit;
  -moz-box-pack: inherit;
  -moz-box-align: inherit;

Also the note

  /* Please keep the declarations below in sync with ::-moz-scrolled-content in
     ua.css and ::-moz-button-content below. */

...suggests the spec is missing a list of properties that should inherit in https://html.spec.whatwg.org/multipage/rendering.html#anonymous-button-content-box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants