- From: Austin Hammer via GitHub <noreply@w3.org>
- Date: Wed, 18 Feb 2026 17:35:42 +0000
- To: public-css-archive@w3.org
> > afaik img sizes="auto" needs to have the width and height up front but we are almost always working with images that are scaled to fill the container and dont know this. > > you need `width` and `height` of the _original_ image, not of the scaled one, right? Ah yes, you're right. In that case that point is mute, but the other two are still whats preventing us from using lazy to solve this. The other additional DX issue is that many devs are using container queries now in css for the layout and have a hard time describing their img/picture media queries that match up to their css. Is there not some way to have a loading="layout" that is after preload scanner but before lazy loading? Or perhaps have preload scanner pre calculate a "best guess" at the layout within a reasonable time frame? -- GitHub Notification of comment by austinh Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5889#issuecomment-3922205656 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 18 February 2026 17:35:43 UTC