Re: [css3-selectors] Selector grammar: negation

>> 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 
selectors.

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


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

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