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

Re: [csswg-drafts] [css-grid] minmax(auto, min-content) under a max-content constraint (#3565)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 Feb 2019 16:20:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-460701368-1549383622-sysbot+gh@w3.org>
@MatsPalmgren You are right, I missed that layout is done again "for real" once the container size is known. Firefox follows the spec before fantasai's edits, but the result just seems weird to me.

@SelenIT I floated the grid container in order to size it under a max-content constraint (assuming enough available space) instead of `width: max-content` which is not supported in Edge. And I floated the contents of the grid item instead of using inline-blocks so that the whitespace between them would have no effect. But the example would be the same without floats. The grid spec defines what to do when sizing under min/max-content constraints, which is what floats do (by default, and among other things). The bug you linked seems unrelated, that's about the max-content contribution of a non-BFC-root block container whose line boxes are shortened by a float participating in the same BFC.

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3565#issuecomment-460701368 using your GitHub account
Received on Tuesday, 5 February 2019 16:20:25 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:43 UTC