Re: [csswg-drafts] [css-grid] Decorative grid-cell pseudo-elements

I believe that having a grid-specific way to style grid area boxed 
would be useful. Grid areas differ from other virtual/dynamic CSS 
boxes (like line boxes, column boxes in multicolumn layout etc.) 
because they 1) definitely exist regardless there is any content 
associated with them, 2) have clear mechanism to address them (by 
name, line numbers etc.) and 3) clear algorithm to calculate their 
size. Essentially we can use the same logic as for placing a 
`::before` pseudo under the hood, though the syntax proposed by Tab 
looks less 'hacky' to me (what we usually want is to style the 
"virtual container" itself, not to place something there just to 
emulate this, which looks more like a workaround if there is no more 
direct way to do it). But pesonally I would be happy with multiple 
pseudos either.

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

Received on Friday, 23 December 2016 08:21:51 UTC