I'm so happy about this!
Chrome is implementing a change to avoid layout jank during image loading 🖼💨
This calculates aspect ratio using width/height attributes
(to size images using/CSS) before they have fully loaded. Already in Firefox 🦊
groups.google.com/a/chromium… ty @jensimmons & CSSWG!
9
43
2
359
Turns out the code isn’t:
img {
aspect-ratio: attr(width) / attr(height);
}
That’s a way to think about it... but it’s done differently.
Thanks to @fantasai & Mozilla: @ecbos_, @davidbaron, @svoisen — without them, this never would have gone anywhere.
FIREFOX FTW!
3
7
1
59
Hi Jen, Emilio et al., do you know which Bugzilla component this image sizing work lives in?
There's a regression for images with usemap where the image content appears stretched when scrolling, and it seems it appeared in Nightly around the same time.
1
1




