Re: [csswg-drafts] [css-scoping] Clarify that ::before/etc allowed after ::slotted()

Selectors Level 3 says that one pseudo element may be appended[1].

The current level 4 draft says they may be followed by user action pseudo classes, but there is also a section showing an example of pseudo elements with internal structure[2], namely ::content, which is a bad example since it's no longer in a spec.

In the current level 4 draft there's also:

"Note: Note that, unless otherwise specified in a future specification, pseudo-classes other than the user action pseudo-classes are not valid when compounded to a pseudo-element; so, for example, ::before:first-child is an invalid selector."

The selectors spec could say something about pseudo elements specified in other specs may explicitly allow other selectors to follow such pseudo elements.

[1] https://www.w3.org/TR/css3-selectors/#selector-syntax
[2] https://drafts.csswg.org/selectors-4/#pseudo-element-structure


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

Received on Tuesday, 22 August 2017 11:57:55 UTC