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

Re: [css3-selectors] Selector grammar: negation

From: Christian Roth <roth@visualclick.de>
Date: Sat, 28 Aug 2004 12:47:34 +0200
To: "www-style Mailing List" <www-style@w3.org>
Message-Id: <20040828114734.4736@mail.visualclick.de>

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

but DIV[test] > P is not a simple selector. The negation pseudo-class
only takes a simple selector as its argument according to [1]. 

Also, pseudo_class is explicitly mentioned in the
simple_selector_sequence production, where the negation pseudo-class is
part of. But the negation non-terminal in the cited production is not
defined, hence my original question.

[1] <http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#negation>

Regards, Christian.
Received on Saturday, 28 August 2004 10:48:10 UTC

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