W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

Re: [csswg-drafts] [css-sizing-4][css-contain] Clarify on specifying aspect-ratio and contain:size on replaced elements (#5550)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Mon, 05 Oct 2020 22:02:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-703913306-1601935365-sysbot+gh@w3.org>
@cbiesinger I'm a little confused, but I'm assuming you're asking, unrelated to any of the above discussion, about an element that has `aspect-ratio: auto 1/2; contain: size;` on it?

Yes, the `1/2` ratio should be used. `contain:size` should be censoring the intrinsic aspect ratio, so the `auto` doesn't do anything, and the explicit `1/2` takes over instead.

(I've opened #5585 now to cover the fact that aspect-ratio isn't actually mentioned in relation to `contain:size`...)

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 5 October 2020 22:02:48 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:20 UTC