[csswg-drafts] [css-sizing-4] Expected size of replaced element with aspect-ratio but width/height auto (#5721)

cbiesinger has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-sizing-4] Expected size of replaced element with aspect-ratio but width/height auto ==
https://drafts.csswg.org/css-sizing-4/#aspect-ratio

Consider:
```html
<img style="aspect-ratio: 1/1; width: auto; height: auto;" src="foo.jpg">
```
(the actual testcase had width/height attributes also, but I doubt they matter)

Normally, we size a replaced element with an auto width and height to its intrinsic size. However, if there is an explicit aspect ratio, should we compute the height from the intrinsic width + ratio?

Note that this can also happen with SVG, which can specify an aspect ratio that does not match the intrinsic size.

cc @bfgeek @tabatkins @fantasai @dvoytenko 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5721 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 12 November 2020 12:52:58 UTC