<img sizes="auto" loading="lazy">
The sizes="auto" attribute for the <img> HTML element determines the layout size for the image based on 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: reading_list/reading_list question
- State of HTML 2025: features/all_features question
Usage (according to Chrome Platform Status)
~0.825% of page loads. More data at chromestatus.com.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist