Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-sizes for lazy-loaded images in HTML #9

Closed
marcoscaceres opened this issue Jun 29, 2022 · 4 comments
Closed

Auto-sizes for lazy-loaded images in HTML #9

marcoscaceres opened this issue Jun 29, 2022 · 4 comments
Labels
from: Bocoup Proposed, edited, or co-edited by Bocoup. position: support topic: html Spec relates to HTML (Hypertext Markup Language) topic: images Spec relates to bitmap or vector image formats, or display or processing of images topic: layout Spec relates to layout topic: loading venue: WHATWG HTML Workstream

Comments

@marcoscaceres
Copy link
Contributor

marcoscaceres commented Jun 29, 2022

Request for position on an emerging web specification

(Please delete inapplicable rows.)

  • WebKittens who can provide input:

Information about the spec

Design reviews and vendor positions

Bugs tracking this feature

Anything else we need to know

On webkit-dev, @zcorpan wrote:

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

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.

Chromium position:
whatwg/html#4654 (comment)

@othermaciej othermaciej added topic: html Spec relates to HTML (Hypertext Markup Language) topic: layout Spec relates to layout topic: loading topic: images Spec relates to bitmap or vector image formats, or display or processing of images labels Jun 29, 2022
@hober
Copy link
Member

hober commented Jun 30, 2022

@smfr @rniwa @litherum @jensimmons, thoughts?

@othermaciej othermaciej added the from: Bocoup Proposed, edited, or co-edited by Bocoup. label Sep 25, 2022
@annevk
Copy link
Contributor

annevk commented Nov 29, 2022

Colleagues and I think this is a reasonable addition. I suggest we mark this as "position: support" in seven days.

@hober
Copy link
Member

hober commented Mar 23, 2023

Closing as we've identified our position.

@hober hober closed this as completed Mar 23, 2023
@WebKit WebKit deleted a comment May 3, 2024
@styfle

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Bocoup Proposed, edited, or co-edited by Bocoup. position: support topic: html Spec relates to HTML (Hypertext Markup Language) topic: images Spec relates to bitmap or vector image formats, or display or processing of images topic: layout Spec relates to layout topic: loading venue: WHATWG HTML Workstream
Development

No branches or pull requests

5 participants