Skip to content

[css-forms-1] Does the Basic Appearance UA Stylesheet define intrinsic sizing? #12117

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
gitspeaks opened this issue Apr 24, 2025 · 0 comments

Comments

@gitspeaks
Copy link

With the release of CSS Form Control Styling Level 1, does Appendix A ("Basic Appearance User Agent Stylesheet") define how intrinsic sizing (especially width: auto / height: auto) should behave for form controls?

Example from the appendix:

select {
  /* Base appearance: select always sizes based on its contents. */
  field-sizing: content !important;
}

Per the spec, 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?

@gitspeaks gitspeaks changed the title [css-forms-1] Does the Basic Appearance UA Stylesheet Define intrinsic sizing? [css-forms-1] Does the Basic Appearance UA Stylesheet define intrinsic sizing? Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants