Re: [csswg-drafts] [css-flexbox] Why does flex item aspect ratio sizing not take max-width into account? (#3736)

> Why would it "usually" be 5px?  That's only if the container is smaller than 5px. 

Yeah, that's the only case I can think of. Your specific example would indeed be 5px by 5px afaict.

> Or, if you specify something like width: 100px; max-width: 5px;, we'll use 100px to compute main size but will clamp cross size to 5px.

So as I mentioned, I think “cross size” under B should be “used cross size”, which means it's going to be 5px in that calculation. And thus the main size will resolve to 5px.

> Yes, specifying that the cross size needs to be clamped by max (and min?) is the outcome I am hoping for. I would prefer not using the terminology "used cross size" because to me it's not clear that this implies applying min/max.

The “used cross size” maps to the “used height” in this case, right? I think that should be clear. And the used height is definitely applying min/max, otherwise getComputedStyle() wouldn't be honoring them either.

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

Received on Monday, 17 June 2019 21:01:00 UTC