[csswg-drafts] [css-flexbox-1] flex-basis: max-content + aspect ratio should use aspect ratio same as flex-basis: content (#4226)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-flexbox-1] flex-basis: max-content + aspect ratio should use aspect ratio same as flex-basis: content ==
Right now the flex base size rules have a special branch for an item with an intrinsic aspect ratio, a flex-basis of `content`, and a definite cross-size, to ensure that the item maintains its aspect ratio. These rules should also be invoked for other content-based sizes for the same reason.

The rule is a bit different from falling down into the generic layout case (step 3.E) because 3.E ends up invoking float sizing for such items, and the float sizing rules directly inspect the value of 'width'/'height', rather than using the more generic notion of "a definite width/height", and so they don't see that the cross size of the item has been fixed by Flexbox's special rules on when a size is definite.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4226 using your GitHub account

Received on Tuesday, 20 August 2019 17:39:34 UTC