Skip to content

Update spec to reflect <select> no longer being an element with default preferred size #12055

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
sakupi01 opened this issue Apr 7, 2025 · 1 comment
Labels
css-box-3 Current Work css-ui-4 Current Work

Comments

@sakupi01
Copy link

sakupi01 commented Apr 7, 2025

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

@lukewarlow
Copy link
Member

As mentioned on the HTML issue, it's only forced to content for the base appearance mode. So I'm not sure if it needs updating?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-box-3 Current Work css-ui-4 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants