[webkit-dev] Request for Position: Auto-sizes for lazy-loaded images in HTML

Simon Pieters simon at bocoup.com
Tue Jun 14 07:56:56 PDT 2022


I'd like WebKit's position on the proposal: Add sizes=auto to lazy-loaded

This allows web developers to omit the `sizes` attribute, or explicitly
specify `sizes=auto`, for <img> elements that have `loading=lazy`. The
browser will use the layout width of the image as input to the srcset
resource selection (lazy images don't start loading until layout is
known, at the earliest). For eager-loading images, it's invalid and
equivalent to `100vw`.

Spec issue: https://github.com/whatwg/html/issues/4654
Spec PR: https://github.com/whatwg/html/pull/8008
Chromium position:
Mozilla standards position:

Simon Pieters
Bocoup https://bocoup.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20220614/c5921bef/attachment.htm>

More information about the webkit-dev mailing list