W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2019

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Tue, 20 Aug 2019 17:39:33 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-482993261-1566322772-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:13 UTC