W3C home > Mailing lists > Public > www-style@w3.org > August 2006

allowed arguments to :not() (was Re: Selector for parent/predecessor?)

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 19 Aug 2006 19:52:27 -0700
To: www-style@w3.org
Message-ID: <20060820025227.GA23538@ridley.dbaron.org>
On Sunday 2006-08-20 12:39 +1000, Lachlan Hunt wrote:
> :not() can only contain a simple selector.  In other words, it cannot 
> contain any combinators.
> 
> e.g.  These are valid:
>   :not(foo)
>   :not(foo[bar])
>   :not(foo:hover)

Actually, only the first is valid.  (The definition of "simple selector"
changed between CSS2 and css3-selectors.)

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Sunday, 20 August 2006 02:52:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:46 GMT