Re: [csswg-drafts] [css-grid-2] subgrid and grid-gap

Not a mockup, these are screenshots of my prototype subgrid implementation in Firefox.

> I'm just curious, what currently happens with your algorithm if the gap size on the sub-grid is larger than the gap size of the parent grid?

The subgrid never shrink the track sizes.  Note that [`stretch`](https://drafts.csswg.org/css-align/#valdef-align-content-stretch) never shrinks tracks in ordinary grids either; instead it causes fallback behavior (i.e. you can then use `*-self` to align the grid as a whole within the content area). So I tend to think `meet` should behave the same.  I wrote up some more details about it in issue #2610.  I don't see a use case for shrinking the tracks given that the purpose of the subgrid is to let its items contribute to the track sizes, so it seems logical to have the same content-distribution behavior in a subgrid.

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

Received on Tuesday, 24 April 2018 23:29:26 UTC