🏠 New in Low Baseline Support: srcset and sizes
March 27, 2017
caniuse · mdn · spec
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.
Source features
api.HTMLImageElement.srcset [mdn]
html.elements.img.srcset [mdn]
html.elements.source.sizes [mdn]
html.elements.source.srcset [mdn]
html.elements.img.sizes [mdn]
api.HTMLImageElement.sizes [mdn]
api.HTMLSourceElement.sizes [mdn]
api.HTMLSourceElement.srcset [mdn]