sizes="auto" landed in Firefox 150, making responsive images simpler and more reliable.
@FirefoxWebDevs90 тыс. подписчиков
22 114 просмотров
12 комментариев
Комментарии из оригинального поста в X (Twitter)

@adamjosefus
You're so good at simplifying web "chaos" into just a few words. Thank you so much, Jake!
5 отметок «Нравится»

@FirefoxWebDevs
Thank you! I'm glad these are landing well. They're fun to make!

@FirefoxWebDevs
There are loads more attributes you can use to control how images are loaded and rendered. Here are the full docs
4 отметки «Нравится»

@RomanHauksson
Nice
2 отметки «Нравится»

@mightyhologram
I absolutely love when Jake explains things
2 отметки «Нравится»

@ShirtlessKirk
Bonus being that if you use `<source>` tags with your `<img>` all wrapped in a `<picture>`, as I do, you can still add `sizes="auto"` to the lazy loaded `<img>` tag as that value will be ignored by the older browsers you still have to support.
2 отметки «Нравится»

@FirefoxWebDevs
Yesss! You can also do sizes="auto, …all the usual shit" and older browsers will ignore the 'auto'.
3 отметки «Нравится»

@RainBromo
@jaffathecake If we could banish every web developer to 250ms pings, the web would be a wonderful place.
1 отметка «Нравится»

@jens023
It's a pleasure listening to you!
1 отметка «Нравится»

@FirefoxWebDevs
Aww thank you!
1 отметка «Нравится»

@fabiovenni
@yoavweiss Finally!!!!! 💪👏👏👏
1 отметка «Нравится»

@growradio
How can we let caniuse know this has landed?