Srcset and sizes attributesExternal Link

BaselineWidely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2019.

The srcset and sizes attributes on img (or source) elements allow authors to define various image resources and "hints" that assist a user agent to determine the most appropriate image source to display (e.g. high-resolution displays, small monitors, etc).

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 97.39% of all users can use this feature, 90.88% fully supported, 6.51% partially supported
✓Supported
✗Not supported
Partial support
Behind a Flag