The field-sizing property in CSS allows authors to opt-in to content-based sizing for text-based inputs, selects, and textareas. This is a very common request from authors, and has historically required JS. But content-intrinsic sizing is pretty a pretty common default in CSS, and it would be great to have this ability on form-fields cross-browser!
Description
The
field-sizing
property in CSS allows authors to opt-in to content-based sizing for text-based inputs, selects, and textareas. This is a very common request from authors, and has historically required JS. But content-intrinsic sizing is pretty a pretty common default in CSS, and it would be great to have this ability on form-fields cross-browser!Specification
https://drafts.csswg.org/css-ui/#field-sizing
Additional Signals
I'm not aware of any web compatibility issues.
Browsers:
Author workarounds:
Author interest in
field-sizing
:field-sizing
from Stephanie Stimac