2 ms·
> In the first link, I don't see anything there that demands the images all have the same aspect ratio. It says "the smaller image is a scaled-down version of
by jaffathecake 4y ago
> In the first link, I don't see anything there that demands the images all have the same aspect ratio.
It says "the smaller image is a scaled-down version of the bigger image". If you scale an image down evenly, it will have the same aspect-ratio. In case you're going to pick at the wording: I know that it's the intention of the spec authors and browser implementers that all entries in the srcset have the same ratio.
> even if all the images in the srcset have the same a-ratio, that doesn't mean that ratio is the same as the ratio in the markup + CSS. Yeah, you can assume. But why risk it?
The last section of the article discusses this.