<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
Developer signals
- State of HTML 2025: performance/performance_features question
- State of HTML 2025: features/all_features question
Usage (according to Chrome Platform Status)
~0.695% of page loads. More data at chromestatus.com.Developer signals
Votes: 2
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