W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

[csswg-drafts] [css-grid] What happens with grid line names when dropping tracks

From: Sergio via GitHub <sysbot+gh@w3.org>
Date: Wed, 08 Jun 2016 12:13:08 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-159148575-1465387988-sysbot+gh@w3.org>
svillar has just created a new issue for 

== [css-grid] What happens with grid line names when dropping tracks 
The specs [mention](https://drafts.csswg.org/css-grid/#auto-repeat) 
that when using auto-fit, tracks with empty repetitions are dropped. 
My question is what happens with the grid line names defined in the 
repeat() function?

As far as I see it we have 2 options
a. we "collapse" them with other potential line names defined outside 
the repeat()
b. we remove them as we do with tracks

IMO (a) is not the right thing to do due to several reasons. First of 
all it seems weird to keep the line names and not the tracks. 
Secondly, we could lead to having only grid line names and no tracks 
in a definition (for example, `grid-template-rows: [a] 
repeat(auto-fit,[b] 10px [c]) [d];` assuming there are no items then 
`grid-template-rows` will become `[a b c d]` without tracks which is 
invalid BTW). And last but not least I really don't see any use case 
for that.

So my proposal is that the spec explicitly mentions (b).


Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/172 using your GitHub 
Received on Wednesday, 8 June 2016 12:13:14 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:59 UTC