Re: [csswg-drafts] [css-contain] Does inline-size containment remove the natural aspect ratio? (#7583)

IMO inline-size containment should drop the aspect-ratio (and we have quite a few WPT tests asserting this indirectly).

Basically aspect-ratio is derived from the natural-width, and natural-height. If you say "ignore the natural-width" we can't really get the aspect-ratio.

Note that mostly this doesn't matter if people add the width/height attributes to their images, as this will set the aspect-ratio via. the presentational-hint style.

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


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

Received on Monday, 17 March 2025 22:48:15 UTC