Skip to content

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

@sakupi01

Description

@sakupi01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions