Web platform features explorer

<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

Specifications

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 150 Released on 2026-04-21
  • Firefox for Android 150 Released on 2026-04-21
  • Safari See webkit.org/b/253143
  • Safari on iOS See webkit.org/b/253143

Baseline availability blocked since April 2026 by Safari (1 months)

Usage (according to Chrome Platform Status)

~0.837% of page loads. More data at chromestatus.com.

Developer votes

Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.