You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 5.2.2 Compressible Replaced Elements, <select> is explicitly listed among elements that are "considered to be replaced elements for the purpose of the percentage-sized replaced element rule" and "can have their min-content contribution compressed".
Given that <select> will now have field-sizing: content !important applied in the UA stylesheet as per the HTML spec changes, it should either:
Be removed from this list, or
Have a note added to clarify its special behavior
Current spec says:
select, textarea, progress, meter, marquee.
(optional) CSS Basic User Interface Module Level 4
While section 7.3 "Switching form control sizing: the field-sizing property" does not explicitly mention <select> in its examples of elements with default preferred size, it may be worthwhile to add a clarifying note that <select> is no longer in this category.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Following the resolution in w3c/csswg-drafts#11879,
<select>
will no longer be an element with default preferred size. This change requires updates to relevant CSS specifications to maintain consistency.Affected Specifications
CSS Box Sizing Module Level 3
In 5.2.2 Compressible Replaced Elements,
<select>
is explicitly listed among elements that are "considered to be replaced elements for the purpose of the percentage-sized replaced element rule" and "can have their min-content contribution compressed".Given that
<select>
will now havefield-sizing: content !important
applied in the UA stylesheet as per the HTML spec changes, it should either:Current spec says:
(optional) CSS Basic User Interface Module Level 4
While section 7.3 "Switching form control sizing: the field-sizing property" does not explicitly mention
<select>
in its examples of elements with default preferred size, it may be worthwhile to add a clarifying note that<select>
is no longer in this category.Related Changes
<select>
base appearance by josepharhar · Pull Request #10670 · whatwg/html<select>
· Issue #11194 · whatwg/htmlThe text was updated successfully, but these errors were encountered: