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

Image loading depending on slot size #36596

Open
WebTerminator opened this issue Oct 31, 2024 · 0 comments
Open

Image loading depending on slot size #36596

WebTerminator opened this issue Oct 31, 2024 · 0 comments
Labels
Content:Learn:HTML Learning area HTML docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@WebTerminator
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

Load the image referenced in the srcset list that has the same size as the slot or, if there isn't one, the first image that is bigger than the chosen slot size.

What did you expect to see?

Based on the current code in the codesandbox I would expect to have the 1000x1000 image being loaded becasue the 223px slot doesn't match with the 200w intrinsic size set in srcset. Is there some sort of buffer being added by the broser?

Do you have any supporting links, references, or citations?

https://codesandbox.io/p/sandbox/f4w424?file=%2Findex.html%3A13%2C36

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@WebTerminator WebTerminator added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 31, 2024
@github-actions github-actions bot added the Content:Learn:HTML Learning area HTML docs label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:HTML Learning area HTML docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant