You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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:
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 likemax-content
orfit-content
?Are these UA styles meant to align with, or establish, a new standard for automatic sizing of form controls?
The text was updated successfully, but these errors were encountered: