Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[css-forms-1] Inherit basic appearance from fieldset to legend
  • Loading branch information
lukewarlow committed Apr 13, 2026
commit e9fa403637794752268edd8ddda0f94d74205a27
10 changes: 6 additions & 4 deletions css-forms-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:css-forms-1; type:value; for:/; text:::placeholder

NOTE: The inheritance prevents authors from mixing native and non-native parts for the same control.

A legend element has [=basic appearance=] if its ancestor fieldset has [=basic appearance=].

## Design Principles for the [=Basic Appearance=] ## {#basic-appearance-principles}

The following design principles apply to the design of the [=basic appearance=] stylesheet for form controls,
Expand Down Expand Up @@ -93,7 +95,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
To apply the [=basic appearance=] on individual controls, the following code is used:

<pre class="lang-css">
input, textarea, meter, progress, button, select, fieldset, legend {
input, textarea, meter, progress, button, select, fieldset {
appearance: base;
}
</pre>
Expand All @@ -119,7 +121,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
color: rgb(131, 17, 0);
}

input, textarea, meter, progress, button, select, fieldset, legend {
input, textarea, meter, progress, button, select, fieldset {
appearance: base;
}
</pre>
Expand All @@ -136,7 +138,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder
color: rgb(0, 249, 0);
}

input, textarea, meter, progress, button, select, fieldset, legend {
input, textarea, meter, progress, button, select, fieldset {
appearance: base;
}
</pre>
Expand Down Expand Up @@ -703,7 +705,7 @@ spec:css-forms-1; type:value; for:/; text:::placeholder

ISSUE: Move to HTML.

When a fieldset is in base appearance mode the layout and rendering behaviour as
When a fieldset has [=basic appearance=] the layout and rendering behaviour as
[defined](https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements:the-fieldset-element-2) in the HTML
specification, do not apply to the fieldset or its legend.

Expand Down