Re: [css3-selectors] minor question about :not()

On Thu, Mar 12, 2009 at 12:40 PM, Andrey Mikhalev
<amikhal@abisoft.spb.ru> wrote:
>
> in 6.6.7:
> "The negation pseudo-class, :not(X), is a functional notation taking a
> simple selector (excluding the negation pseudo-class itself and
> pseudo-elements) as an argument."
>
> so, :not(:pseudo-element) - allowed by formal grammar -
> is invalid selector or "useless" selector, as foo:not(bar) ?

In general, the formal grammar is much more permissive than the actual
grammar.  Yes, :not(::pseudo-element) is an invalid selector.

~TJ

Received on Thursday, 12 March 2009 17:53:49 UTC