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
That sounds more likely to be Graphics / WebRender stuff, but Layout :: Images, or just Layout is fine. Or just file it anywhere and ni? me and I'll take a look. Ty!
1
Could be! I couldn't reproduce this one, so just in case I made a new bug with a small test case: bugzilla.mozilla.org/show_bu…