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

@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