Baseline Widely HTML
srcset and sizes
The srcset and sizes attributes for <img> elements set a list of possible sources for the image and a corresponding list of size conditions for choosing a source, to show a responsive image that fits the size of the display.
Baseline Status
Widely Available
Since 2017-03-27
First Core Launch
Chrome 38
2014-10-07
Core-3 Stability
902d (2.5y)
Last: Safari (2017-03-27)
BCD Keys Mapped
8
Group: HTML
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 38 | 2014-10-07 |
| Chrome Android | mobile | 38 | 2014-10-08 |
| Firefox | desktop | 38 | 2015-05-12 |
| Firefox for Android | mobile | 38 | 2015-05-12 |
| Edge | desktop | 13 | 2015-11-12 |
| Safari | desktop | 10.1 | 2017-03-27 |
| Safari on iOS | mobile | 10.3 | 2017-03-27 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.HTMLImageElement.sizes | DOM API | 531d (1.5y) |
| api.HTMLImageElement.srcset | DOM API | 399d (1.1y) |
| api.HTMLSourceElement.sizes | DOM API | 902d (2.5y) |
| api.HTMLSourceElement.srcset | DOM API | 902d (2.5y) |
| html.elements.img.sizes | HTML | 531d (1.5y) |
| html.elements.img.srcset | HTML | 399d (1.1y) |
| html.elements.source.sizes | HTML | 531d (1.5y) |
| html.elements.source.srcset | HTML | 531d (1.5y) |