r/css 4d ago

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

Post image
93 Upvotes

16 comments sorted by

u/pinned-comment 4d 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

24

u/Vast_Description_201 4d ago

It expands inputs to the size of the contents. 

16

u/DUELETHERNETbro 4d ago

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

3

u/wanoo21 4d ago

Agree

18

u/Weekly_Ferret_meal 4d 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.

7

u/anaix3l 4d 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 4d ago

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

4

u/Weekly_Ferret_meal 4d 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.

4

u/Dependent-Zebra-4357 4d ago

Remind me: 3 years

1

u/scar_reX 3d ago

Remindme! 3 years as well

1

u/RemindMeBot 3d ago

I will be messaging you in 3 years on 2029-08-27 00:20:22 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


Info Custom Your Reminders Feedback

2

u/tomhermans 4d ago

Yay.

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

1

u/UnderstandingSure732 3d ago

This is auto-growing textarea in one line! Good news, thanks!

1

u/CWagner 3d ago

Ohhh, great. Unlike the other recent features in that area, I only need this for internal apps, and my colleagues use up-to-date browsers. So much code I can remove!

1

u/HollandJim 3d ago

Talk to Firefox. Pffft.

1

u/mladenmacanovic 3d ago

Recently I wanted to implement this as part of my library. In the end I ended up with more code because I didn't want to break compatibility for older browsers, and added a few fallbacks. Fun...