- From: gitspeaks via GitHub <sysbot+gh@w3.org>
- Date: Thu, 24 Apr 2025 16:42:21 +0000
- To: public-css-archive@w3.org
gitspeaks has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-forms-1] Does the Basic Appearance UA Stylesheet Define intrinsic sizing? ==
With the release of [CSS Form Control Styling Level 1](https://drafts.csswg.org/css-forms/), does [Appendix A](https://drafts.csswg.org/css-forms/#basic-appearance-stylesheet) ("Basic Appearance User Agent Stylesheet") define how intrinsic sizing (especially `width: auto` / `height: auto`) should behave for form controls?
Example from the appendix:
```css
select {
/* Base appearance: select always sizes based on its contents. */
field-sizing: content !important;
}
```
Per the [spec](https://drafts.csswg.org/css-forms/#valdef-field-sizing-content), `field-sizing: content` tells the UA to size based on content and ignore any default preferred size defined by the host language.
Does this mean `width: auto` for `<select>` effectively behaves like `max-content` or `fit-content`?
Are these UA styles meant to align with, or establish, a new standard for automatic sizing of form controls?
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12117 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 24 April 2025 16:42:22 UTC