W3C home > Mailing lists > Public > www-style@w3.org > March 2009

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 12 Mar 2009 12:53:13 -0500
Message-ID: <dd0fbad0903121053t5518dd7dq683896245103ba7f@mail.gmail.com>
To: Andrey Mikhalev <amikhal@abisoft.spb.ru>
Cc: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:17 GMT