Загрузка видео...

Не удалось загрузить видео

На главную

auto-growing <textarea> without JavaScript! CSS is getting field-sizing: content; to size inputs by their contents. Dropped in Chrome Canary today, demo here:

203,517 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 9

Фото профиля Cory House
Cory House2 лет назад

Wow Wes I really like this video format. Super clear and mobile friendly. 👍

Фото профиля Wes Bos
Wes Bos2 лет назад

thanks a ton! Been about a year of playing with different layouts. It lends itself well to quick little tips without a ton of code

Фото профиля Wes Bos
Wes Bos2 лет назад

yeah! @stolinski used the popover API for do them on our site - and then I just used links

Фото профиля Jason
Jason2 лет назад

And people say CSS isn’t a real language. It’s magical

Фото профиля Kilian Valkhof
Kilian Valkhof2 лет назад

Impressive turnaround time there 😁 Also available in Polypane 17, released today 😎

Фото профиля Martin Elitzer
Martin Elitzer2 лет назад

Most awesome new css feature I've seen in a minute.

Фото профиля ELLIOT
ELLIOT2 лет назад

Woah, that would be so awesome. I had to deal with input auto-sizing a few days ago, and there literally was just horrible ways of doing it.

Фото профиля Rik Schennink
Rik Schennink2 лет назад

Nice! Hassle to do with JS. Could this, instead of introducing a new property, also work with: width: fit-content; height: fit-content; Haven’t tested but seems it should do the same?

Фото профиля Wes Bos
Wes Bos2 лет назад

Apparently it was considered, but not the exact same thing:

Похожие видео