`field-sizing: content` lets textareas and other form controls grow with their content instead of staying at a fixed default size. A simple auto-expanding input no longer needs repeated JavaScript height measurement.
In the demo each added line grows the textarea. Set a maximum size and overflow behavior so long input does not push the rest of the page away.
When to use
Use it for message composers or short notes that should expand with text.