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

Well... We can re-use the `normal` keyword (which is the initial value) to give the copy-from-parent behavior while allowing customization inside. It's maybe a little tricky to handle in the sizing algorithm, since gaps are currently specified as behaving just like tracks, but I think we could add the difference between the subgrid's gaps and the parent's gaps as “pretend margin” on the individual items.

Note that right now, if I have a 3-column grid with 200px columns and 20px gaps, it is 660px wide, to accommodate both the columns and the gaps. What you're suggesting means that inside a subgrid, we could specify a different gap size, and the columns would be wider/narrower than the specified size.

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

Received on Thursday, 8 February 2018 01:17:13 UTC