W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

Re: [csswg-drafts] [css-sizing-4] Should aspect-ratio apply for width: auto; height: auto;? (#5060)

From: Daniel Holbert via GitHub <sysbot+gh@w3.org>
Date: Mon, 18 May 2020 17:13:39 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-630320419-1589822018-sysbot+gh@w3.org>
> Intriguingly, unlike the SVG, Firefox does not apply the right aspect ratio for `<img>`:
> https://jsfiddle.net/dgrogan/djh5wu0x/1/
> 
> @dholbert , what's up with that? :)

I'm not sure offhand why there's an img/svg difference, but Chrome & Firefox do agree on that being a difference. Here's an expanded version of your fiddle, comparing img vs. svg-with-intrinsic-size, for both `stretch` and `flex-start` -- Firefox and Chrome agree on the rendering https://jsfiddle.net/dholbert/wxr4jsg1/

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5060#issuecomment-630320419 using your GitHub account
Received on Monday, 18 May 2020 17:13:40 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:06 UTC