[csswg-drafts] Update spec to reflect `<select>` no longer being an element with default preferred size (#12055)

sakupi01 has just created a new issue for https://github.com/w3c/csswg-drafts:

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

Following the resolution in [w3c/csswg-drafts#11879](https://github.com/w3c/csswg-drafts/pull/11879), `<select>` will no longer be an [element with default preferred size](https://drafts.csswg.org/css-ui/#element-with-default-preferred-size). This change requires updates to relevant CSS specifications to maintain consistency.

## Affected Specifications

### [CSS Box Sizing Module Level 3](https://drafts.csswg.org/css-sizing-3/)

In [5.2.2 Compressible Replaced Elements](https://drafts.csswg.org/css-sizing-3/#min-content-zero), `<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

- HTML spec change: [Add UA stylesheet for <select> base appearance by josepharhar · Pull Request #10670 · whatwg/html](https://github.com/whatwg/html/pull/10670)
- Filed HTML spec update to remove: [Remove support of field-sizing from `<select>` · Issue #11194 · whatwg/html](https://github.com/whatwg/html/issues/11194)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12055 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 7 April 2025 15:40:43 UTC