The <picture>
element has been working in Chrome for over a year, but I can't get the sizes
attribute of <source>
to work.
The following displays the correct image for the breakpoints in the media queries, but the images are displayed at their default sizes instead of using the values specified in the sizes
attribute.
<picture>
<source media="(min-width: 600px)"
sizes="50vw"
srcset="img1.jpg">
<source media="(min-width: 400px)"
sizes="90vw"
srcset="img2.jpg">
<img src="img3.jpg" alt="my image">
</picture>
Am I missing something?