{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/172","repository_url":"https://api.github.com/repos/w3c/csswg-drafts","labels_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/172/comments","events_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/172/events","html_url":"https://github.com/w3c/csswg-drafts/issues/172","id":159148575,"number":172,"title":"[css-grid] What happens with grid line names when dropping tracks","user":{"login":"svillar","id":1826122,"avatar_url":"https://avatars.githubusercontent.com/u/1826122?v=3","gravatar_id":"","url":"https://api.github.com/users/svillar","html_url":"https://github.com/svillar","followers_url":"https://api.github.com/users/svillar/followers","following_url":"https://api.github.com/users/svillar/following{/other_user}","gists_url":"https://api.github.com/users/svillar/gists{/gist_id}","starred_url":"https://api.github.com/users/svillar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svillar/subscriptions","organizations_url":"https://api.github.com/users/svillar/orgs","repos_url":"https://api.github.com/users/svillar/repos","events_url":"https://api.github.com/users/svillar/events{/privacy}","received_events_url":"https://api.github.com/users/svillar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-08T12:13:08Z","updated_at":"2016-06-08T20:06:27Z","closed_at":null,"body":"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?\r\n\r\nAs far as I see it we have 2 options\r\na. we \"collapse\" them with other potential line names defined outside the repeat()\r\nb. we remove them as we do with tracks\r\n\r\nIMO (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.\r\n\r\nSo my proposal is that the spec explicitly mentions (b).\r\n\r\nWDYT?"},"comment":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/comments/224711364","html_url":"https://github.com/w3c/csswg-drafts/issues/172#issuecomment-224711364","issue_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/172","id":224711364,"user":{"login":"tabatkins","id":682840,"avatar_url":"https://avatars.githubusercontent.com/u/682840?v=3","gravatar_id":"","url":"https://api.github.com/users/tabatkins","html_url":"https://github.com/tabatkins","followers_url":"https://api.github.com/users/tabatkins/followers","following_url":"https://api.github.com/users/tabatkins/following{/other_user}","gists_url":"https://api.github.com/users/tabatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/tabatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabatkins/subscriptions","organizations_url":"https://api.github.com/users/tabatkins/orgs","repos_url":"https://api.github.com/users/tabatkins/repos","events_url":"https://api.github.com/users/tabatkins/events{/privacy}","received_events_url":"https://api.github.com/users/tabatkins/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T20:06:27Z","updated_at":"2016-06-08T20:06:27Z","body":"On Wed, Jun 8, 2016 at 12:29 PM, Mats Palmgren <notifications@github.com> wrote:\n>\n> I'm not sure what you mean by \"will become\".\n> I'm assuming that you're talking about the resolved value for these properties.\n> https://drafts.csswg.org/css-grid/#resolved-track-list\n>\n> When there are zero tracks Firefox returns 'none' as the resolved value.\n> Other than that edge case, we essentially merge the line names with the names on both sides of the dropped track and then remove any duplicates. So for the example you give, \"[a] repeat(auto-fit,[b] 10px [c]) [d]\", the resolved value is \"[a b] 10px [c d]\" when there is one item, the resolved value is \"[a b] 10px [c b] 10px [c d]\" when there are two items etc.\n>\n> I think this is the result you're suggesting, right?\n\nThis is what's intended, yes.\n\nThere isn't a good description of how to serialize resolved values,\nbut \"none\" is a correct serialization of \"all the tracks got dropped\".\nNames are irrelevant at that point.  (*Technically* they can still\naffect whether something gets positioned against the sole explicit\nline or one of the implicit lines, but come on.)\n\n~TJ\n"}}
{"actor":{"display_login":"tabatkins"}}