Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 görüntüleme • 2 yıl önce •via X (Twitter)

9 Yorum

Cory House profil fotoğrafı
Cory House2 yıl önce

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

Wes Bos profil fotoğrafı
Wes Bos2 yıl önce

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 profil fotoğrafı
Wes Bos2 yıl önce

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

Jason profil fotoğrafı
Jason2 yıl önce

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

Kilian Valkhof profil fotoğrafı
Kilian Valkhof2 yıl önce

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

Martin Elitzer profil fotoğrafı
Martin Elitzer2 yıl önce

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

ELLIOT profil fotoğrafı
ELLIOT2 yıl önce

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 profil fotoğrafı
Rik Schennink2 yıl önce

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 profil fotoğrafı
Wes Bos2 yıl önce

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

Benzer Videolar