I'm implementing responsive images on a new website and have a question. Is it correct that the example code below will load test-400.jpg
on any screen that's 960 pixels or larger? Even if the image width only takes up 40% of the screen width? This is the outcome I'm looking for
I've attempted to work out how I can find in the browser developer tools, what image is being used to work this out for myself but haven't had much success working out how to do that.
<picture>
<source media="(min-width: 960px)" sizes="100vw" srcset="test-400.jpg">
<img src="test.jpg"
srcset="test-310.jpg 310w, test-400.jpg 400w, test-460.jpg 460w, test-620.jpg 620w, test-840.jpg 840w" sizes="(max-width: 959px) 100vw, 50vw"
alt="test image">
</picture>