Re: [csswg-drafts] [css-grid] "grid-column: 1 / -1" should span all columns

Another rough idea of syntax/implementation (also copy-and-pasted from the thread):

Some kind of a function wrapper that would tell “this row/column can contain only one item that would take it entirely”.

`grid-template-columns: 1fr span-all(1fr) 1fr`, or something like that?

As for the solving the last line for any added items: any items that would want to be placed in this column having no explicit raw would be placed into it overlapping anything that was present there.

For cases when there are multiple items defined alongside this, for example:

``` CSS
.grid {
  grid-template:
    "a    b              c"
    "a    d              c" /
     1fr  span-all(1fr)  1fr;
}
```

Only the last item/area on the edge of explicit grid should be continued to the end I think, so the `b` item would span to 1 element, and `d` would be the one spanned to the end.


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

Received on Wednesday, 21 March 2018 20:28:22 UTC