正在加载视频...

视频加载失败

TIL about `field-sizing: content` in css

150,898 次观看 • 1 年前 •via X (Twitter)

10 条评论

Jonnie Hallman 的头像
Jonnie Hallman1 年前

Looks like this tweet took off overnight… Here’s my blog where I mostly write about building and maintaining an app for the past 10 years:

Jesper Bylund -- e/acc 的头像
Jesper Bylund -- e/acc1 年前

What. Is this a new thing?? Or how long has this been available? 😅

Jonnie Hallman 的头像
Jonnie Hallman1 年前

Looks like Chrome/Edge got support in March

Antoine Minoux 的头像
Antoine Minoux1 年前

Can you still specify a max-height?

Jonnie Hallman 的头像
Jonnie Hallman1 年前

Yep! and it works for both vertical autosize and horizontal, so max-width too.

Marco Roth 的头像
Marco Roth1 年前

@pooriajr not quite ready yet, but check this out 👆🏼

Nick Noble 的头像
Nick Noble1 年前

NO WAY

Gustav Ekerot 的头像
Gustav Ekerot1 年前

We need this yesterday

Manish Nikam 的头像
Manish Nikam1 年前

this has come so late, should have been a default day 0 feature. deleting this pos react component now.

Christopher / クリス 的头像
Christopher / クリス1 年前

Sadly a basically Chrome only feature right now

相关视频