field-sizing
Newly availableSince 202688% of users
A modern property that allows form fields (like textareas) to automatically grow or shrink based on the amount of text typed into them, without needing JavaScript.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since June 2026. Widely available around December 2028.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
fixed- Inherited
- No
- Applies to
- elements with a default preferred size
- Animation type
- discrete
Quick example
textarea {
/* Textarea will grow automatically as the user types */
field-sizing: content;
min-height: 3em;
}Values
contentfixedRelated snippet
Auto-growing textarea without JavaScriptLayout →field-sizing browser support
BaselineNewly availableSince 2026 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage88%of people can use this12% use a browser without it.
Browsers
123+
152+
26.2+
123+Mobile
123+Android
152+Android
26.2+iOS