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

@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