[csswg-drafts] [css-grid-2] Define containment for subgrids

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid-2] Define containment for subgrids ==
A subgrid doesn't establish a new grid formatting context: it extends its parent’s, with various interactions between the two. This is intentional. (It's the whole point of subgrid.) But for an element with `contain: layout`, we have to define what happens. Presumably the subgrid is no longer a subgrid, but what does it do with its tracks?

- Do they resolve the same as `none` or do we infer the number of tracks from the number of tracks it spans in the parent?
- If the latter, where do they get their size, from `grid-auto-*`?
- What if it has no grid parent from which to determine the span?

(Whichever options we choose, probably the general case of a subgrid without a parent grid should have consistent behavior. Currently we've specced it to behave as `grid: none`.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2641 using your GitHub account

Received on Friday, 4 May 2018 00:02:25 UTC