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

It seems like a reasonable expectation, but there's two problems with making `grid: 1/-1` work like this:

- Due to auto-placement, we don't know where the last line is until everything is placed; and placing something relative to the last auto-generated line impacts where the auto-placed things are placed, which impacts how many lines we need, which changes which line would be the last line...
- It's possible for auto-generated lines to be added *before* the first line; we can't really shift line number 1 in response to the implicit lines before the start, so it would be inconsistent to shift line number -1 in response to lines added after the end.

I would like to solve the use case, but given the way placement works currently, a) I don't know how to actually do it and b) it would definitely need a different syntax than negative indexes.

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

Received on Wednesday, 21 March 2018 19:50:38 UTC