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

Re: [csswg-drafts] [css-sizing-4] Should aspect-ratio apply for width: auto; height: auto;? (#5060)

From: Christian Biesinger via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 May 2020 22:39:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-628922465-1589495951-sysbot+gh@w3.org>
@AmeliaBR So, I want to follow up on the flex item case. First I thought you were right, now I'm not sure. See:
https://drafts.csswg.org/css-flexbox/#definite-sizes step 3
"*Once the cross size of a flex line has been determined*, the cross sizes of items in auto-sized flex containers are also considered definite" (emphasis mine)

But https://drafts.csswg.org/css-flexbox/#algo-main-item happens *before* the cross-size determination.

As such, I think the flex item case does require a `height: 100%` to trigger aspect-ratio in this case.

GitHub Notification of comment by cbiesinger
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5060#issuecomment-628922465 using your GitHub account
Received on Thursday, 14 May 2020 22:39:13 UTC

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