-
Notifications
You must be signed in to change notification settings - Fork 23k
Add auto sizes fallback img doc #40906
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
Add auto sizes fallback img doc #40906
Conversation
|
Preview URLs (comment last updated: 2025-08-28 10:30:59) |
chrisdavidmills
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AyaanB24 thanks for another great contribution! I've got a few comments for you to consider.
…AyaanB24/content into add-auto-sizes-fallback-img-doc qa!
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chrisdavidmills
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this is looking good. Thanks again @AyaanB24!
Fixes #40902
Summary
Added clarification for the auto keyword and fallback values in the sizes attribute of the
element. This ensures developers know how to maintain backward compatibility for browsers that do not support auto.
Problem
The existing MDN documentation did not mention:
How to specify fallback values when using auto.
The importance of ordering fallback values for older browsers.
What Changed
Updated the sizes attribute description.
Added note about backward compatibility.
Included an example from the HTML specification.
Before
After