Re: [csswg-drafts] [css-sizing] Is aspect-ratio affected by box-sizing? (#4665)

Seems pretty clear in the spec:

> `auto`
>    Replaced elements with an intrinsic aspect ratio use that aspect ratio; otherwise the box has no preferred aspect ratio. **Size calculations involving intrinsic aspect ratio work with the content box dimensions always.** 
> `<ratio>`
>    The box’s preferred aspect ratio is the specified ratio of width / height. **Size calculations involving preferred aspect ratio work with the dimensions of the box specified by box-sizing.**

I guess the exciting thing is what happens with `<img width=x height=y>`: we want HTML to map into CSS syntax, but the current HTML spec defines the aspect ratio as an "intrinsic aspect ratio"...

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4665#issuecomment-614198038 using your GitHub account

Received on Wednesday, 15 April 2020 18:15:49 UTC