Re: [csswg-drafts] [css-grid] Display any element as part of any given grid

@tobireif, yes, by mentioning "slots" for future elements (implicitly) created by the Grid I just wanted to note that the proposed extension for the Grid mechanism is quite progressive-loading-friendly (which may be important for the implementers). Thanks for the clarification!

But regarding referencing the elements by CSS selectors I'm not convinced yet, AFAIK, CSS never used selectors as values before, it would be a new idiom for CSS parsers and could be therefore harder to implement than reusing the common pattern of naming things in CSS. Also, selectors can change if DOM is modified dynamically, while grid names assigned through CSS property would be unaffected in the same case. And if at some point in the future it becomes possible for the element to establish more than one grid (this idea is [cropping up](https://github.com/w3c/csswg-drafts/issues/1375#issuecomment-342045121) from time [to time](https://twitter.com/kizmarh/status/956120640607670274)), then referencing the grid by name would be more unambiguous and flexible than referencing its originating element by selector.

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

Received on Tuesday, 15 May 2018 18:42:52 UTC