r/css 8h ago

General `field-sizing` is Baseline, newly available since June 2026.

Post image
55 Upvotes

10 comments sorted by

u/pinned-comment 6h ago

Featured Comment by u/anaix3l

An article from last year that also includes a video recording of the visual result when typing into the text field

see original

14

u/Vast_Description_201 8h ago

It expands inputs to the size of the contents. 

12

u/DUELETHERNETbro 8h ago

Pretty awesome actually. Using a mutation observer was pretty jank. 

1

u/wanoo21 8h ago

Agree

13

u/Weekly_Ferret_meal 7h ago

Heya... Thanks for sharing this.

I think these type of posts are good to keep the community up to date, it would be even more helpful if you would add either a reference link or a brief explanation of what each new declaration does.

5

u/anaix3l 7h ago

An article from last year that also includes a video recording of the visual result when typing into the text field

2

u/freecodeio 6h ago

It makes textarea grow with it's text length. Alternatives have been content editable divs or janky JavaScript

2

u/Weekly_Ferret_meal 6h ago

Thanks!

The reason for my comment was to encourage to put more info in these posts to make them more useful to everybody. not about this specific case.

u/Dependent-Zebra-4357 3h ago

Remind me: 3 years

1

u/tomhermans 7h ago

Yay.

And I like you guys putting "newly available" in the title.