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: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 May 2020 23:48:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-628944357-1589500095-sysbot+gh@w3.org>
@cbiesinger Are you only looking in Chrome? Because there is still cross browser inconsistency here. Chrome collapses elements to zero, Firefox does not, see [modified version of your test case with SVG elements as well](https://plexode.com/eval3/#s=aekVQXANJVQMbAx1yAXgePQN5GwFHTUZZHAGDnRIREVGiAVBWVU1KT0adhwFTRkWjgp0TE6mimh89TwEBHVGXmQOEnVFWU1GgAYxVVbjBNUZUVbFIHRBRwsTGlpiaQlRRRkRVDlNC3FCmEBKji51It0ZPo6UBU4RAwTCwcYLfOTiYqVZLndLrdrveLzeoBe4BLRGJpNKBYgoDD8HhLGKhXJABK5KIxYEZQLLKBwSAMwAITmiahgDixDJpWIz9UyogUEYLDYsKIhKKZEaRTZQSm5HJUaZRRWJMTQQkTfkhIrVck8plctl8xmc1Cc3c05TpQd5PJE+ojjY1IpVMp1QqRNZRFIRTJgza4DrNFYwQrjikIDLwAA==).

@fantasai would probably remember better than I, but I'm pretty sure the WG consensus was that the “elements with aspect ratio but no defined size collapse to zero in flexbox” was a _bad_ thing. 😏 If you want to work on tracking down the necessary tests & bug fixes, that would be greatly appreciated!

Either way, the CSS box with aspect-ratio should behave the same as the SVG.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5060#issuecomment-628944357 using your GitHub account
Received on Thursday, 14 May 2020 23:48:18 UTC

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