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

Re: [css3-selectors] Selector grammar: negation

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Sat, 28 Aug 2004 12:07:09 +0200
Message-ID: <4130594D.2070001@annevankesteren.nl>
To: lachlan.hunt@lachy.id.au
CC: Christian Roth <roth@visualclick.de>, www-style Mailing List <www-style@w3.org>

>> Does a selector like
>>   not( DIV[test] > P )
>> exist, representing all elements but P elements which have a parent DIV
>> with attribute test?
> Yes, it's called the negation pseudo-class
> http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#negation

However, it can only contain a simple selector. It can not contain child 

(If :matches() will ever be accepted, :not() could probably be updated 
in the same fashion, which will probably allow the selector mentioned 

  Anne van Kesteren
Received on Saturday, 28 August 2004 10:07:36 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:07 UTC