Re: [selectors4] Universal Selector '*' (asterisk) elsewhere

Tab Atkins Jr.:
> 
> This just shows, yet again, that pseudo-elements should be treated
> like real elements, not as aspects of another element.  If they were
> real elements and :: was a combinator or something, you'd just do: "*
> :: *" and be done with it.

I never thought of pseudo-elements as “aspects” of other elements. In my mental model they are style-based children that every tree-based node has, even when otherwise empty. Therefore they don’t count when using tree-based selectors, because otherwise ‘:first-child’ would always match ‘::before’.

Lately I’ve thought about regions and whether or how they should be selectable. I still tend to prefer ‘@region’, but that only works well for large, unique regions, whereas sometimes you would want to create and anchor a region (or more than one) before, after or in place of a node, which would make ‘::region’ the saner choice …

Received on Saturday, 31 March 2012 12:32:41 UTC