-
Notifications
You must be signed in to change notification settings - Fork 757
Description
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 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.
Related Changes
- Upcoming HTML spec change: Add UA stylesheet for
<select>base appearance by josepharhar · Pull Request #10670 · whatwg/html - Filed HTML spec update: Remove support of field-sizing from
<select>· Issue #11194 · whatwg/html