Re: [csswg-drafts] [css-forms-1] Should `field-sizing: content` be in base appearance stylesheet? (#11838)

I'm started to be convinced that we should do something like this, to make sizing of form controls more similar to other elements.

I don't think field-sizing: content is fully ideal though. We probably want the controls to fill the whole available inline-size when block display is used. Maybe this should be a value like `field-sizing: auto` or similar, that just makes sizing similar to using a normal `<div>`. 

I do think there should be a default size to controls that is reasonable for users to type in though, so we might want some UA styles to achieve that. That could either be a min size as Luke suggests above, or using block level display, so that the default inline-size is just to fill the whole available space.

cc @fantasai @lukewarlow @tkent-google @dbaron

-- 
GitHub Notification of comment by nt1m
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11838#issuecomment-2906058612 using your GitHub account


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

Received on Saturday, 24 May 2025 00:02:08 UTC