CSS field-sizing becomes Baseline: inputs now grow with content
With Firefox 152 shipping on June 16, 2026, the field-sizing: content property is now Baseline and works in Chrome, Edge, Firefox and Safari. It lets input, textarea and select size themselves to their content without JavaScript.
- field-sizing: content replaces scripts that measured scrollHeight on every keystroke
- Chrome and Edge 123 shipped it in March 2024, Safari 26.2 in December 2025
- Without min-width an empty field shrinks to the cursor width, about 9 pixels
- The size, rows and cols attributes stop working with field-sizing: content
Read next
Software