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. In my example the item is stretched (default value) and max(5px, cross size) is 10px. So with a 1:1 ratio, you'll get a 10px height (main size) and 5px cross size (because of max-width).

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.

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.

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

Received on Thursday, 13 June 2019 18:12:55 UTC