<img sizes="auto" loading="lazy">
The sizes="auto" attribute for the <img> HTML element sets the layout size for the image based on the computed layout size when choosing a source from the srcset. This attribute only applies to images with the loading="lazy" attribute.
Status
Limited availability
MDN documentation
Specifications
- HTML (#valdef-sizes-auto), from HTML Workstream (WHATWG).
Browser support
- Chrome 126 Released on 2024-06-11
- Chrome Android 126 Released on 2024-06-11
- Edge 126 Released on 2024-06-13
- Firefox ❌ See bugzil.la/1819581
- Firefox for Android ❌ See bugzil.la/1819581
- Safari ❌ See webkit.org/b/253143
- Safari on iOS ❌ See webkit.org/b/253143
Surveys
Usage (according to Chrome Platform Status)
~0.966% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper signals
Votes: 13
If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist