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

@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