[csswg-drafts] [css-sizing] Has #4951 been amended by a later resolution? (#11093)

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

== [css-sizing] Has #4951 been amended by a later resolution? ==
So my understanding from #4951 and https://drafts.csswg.org/css-sizing-4/#valdef-aspect-ratio-ratio is that these tests are wrong:

 - http://wpt.live/css/css-sizing/aspect-ratio/replaced-element-013.html
    ```html
    <!-- Replaced elements should always use content-box sizing for the purpose of
         aspect ratio. -->
    <img src="support/20x50-green.png" style="aspect-ratio: 20/50; background: green; padding-right: 80px; padding-bottom: 50px; box-sizing: border-box;">
    ```

 - http://wpt.live/css/css-sizing/aspect-ratio/replaced-element-014.html


    ```html
    <!-- Replaced elements should always use content-box sizing for the purpose of
         aspect ratio. -->
    <img src="support/20x50-green.png" style="aspect-ratio: 20/50; background: green; padding-right: 80px; padding-bottom: 50px; box-sizing: border-box; max-height: 100px;">
    ```

Since `aspect-ratio` doesn't have `auto`, then it should obey `box-sizing`.

But of course the tests are part of interop-2021 and all browsers are passing them.

I'm not sure if there has been some amendment to align with browsers.

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


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

Received on Friday, 25 October 2024 23:17:34 UTC