Textarea
A textarea that grows with its content. The autogrow JavaScript you've written five times is one CSS declaration now.
field-sizing
How it works
field-sizing-content(field-sizing: content) makes the textarea size itself to its value. No hidden mirror element, noscrollHeightmeasuring, no resize listener.rows="3"sets the starting height,max-h-48caps the growth — past that it scrolls.- Browsers without
field-sizingsimply keep the fixedrowsheight and scroll. Nothing to polyfill.
Browser support
Minimum stable version per engine, resolved at build time from MDN's browser-compat-data; Baseline status from the official web-features dataset. Everything degrades gracefully — the “when missing” column is the actual behavior, not a broken page.
| Feature | Chrome | Edge | Firefox | Safari | When missing |
|---|---|---|---|---|---|
| field-sizing: contentBaseline 2026 · newly available | 123 | 123 | 152 | 26.2 | The textarea keeps its fixed rows height and scrolls. |