Re: [csswg-drafts] [css-grid-2] Subsetting grid-template-areas in subgrids (#4411)

> Ah, so if the subgrid fully overlaps a parent's grid area, the subgrid's children still don't see those lines?

I think that is unintuitive and not particularly useful.

The way I imagine it working is that the sub-grid kind of crops the parent grid areas.

```css
.parent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grud-template-areas: "a a a a";
}

.sub-grid {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 2 / 4;
}

.sub-grid-cell {
  grid-area: a;
}
```

```
Parent grid:  |a-start     |             |               |       a-end |

Sub grid:     |            |a-start      |          a-end|             |
```

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

Received on Thursday, 17 October 2019 13:26:56 UTC