- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Mon, 30 Apr 2018 23:02:48 +0000
- To: public-css-archive@w3.org
I agree with @fantasai - I think the best way to manage this is by accumulating "additional extra margin" (possibly *negative* margin) on the subgrid's items, if the subgrid has a different grid-gap than the parent grid. We already do this for the subgrid's *outer-edge* items to account for the subgrid's m/b/p. This gives us the behavior that subgrid gaps are still centered with the parent grid gaps, which is what @Dan503 wants. @mrego, just saying "use a grid-gap:0 on the parent, and then use margin on the subgrids to separate them the needed amount" only works if you know exactly how many rows you have (and where each item will be placed), or if you specifically want the "half space on each edge, full space between" pattern. If you want the normal gap behavior of "zero on the edge, full space between", you can't do it with margins if your items are unpredictably spaced or using the implicit grid. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2285#issuecomment-385554106 using your GitHub account
Received on Monday, 30 April 2018 23:02:51 UTC