You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"...
For regular replaced elements it makes sense that the content box is what preserves the ratio:
It's less clear to me that's the desired behavior for
aspect-ratio
. Is it?The text was updated successfully, but these errors were encountered: