W3C home > Mailing lists > Public > www-style@w3.org > October 2000

Re: selector negation (was: Re: New version of the Selectors module of CSS3)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 9 Oct 2000 13:51:47 +0200
Message-ID: <00ec01c031e7$860f9b30$89cbb43e@de>
To: "Jonas Sicking" <sicking@bigfoot.com>, <www-style@w3.org>
* "Jonas Sicking" <sicking@bigfoot.com> wrote:
| I'd guess that the WG has recogniced the need for class inversion since the
| CSS3 drafts has contained inversion of some of the classes. What I'm asking
| for is to make inversion generic on *all* pseudo classes by saying "any
| pseudoclass can be inverted by putting not- infront of it" rather then
| adding some specific classes that are inverted. That way it could also be
| possible to have the CSS parser handle the inversion and thus making css
| renderers a bit slimmer.

I really don't like a 'not-' prefix as a generic modifier.
What about a suffix pseudo-class?


  "selects element p not containing 'foo'"


  "selects element a with href not starting with 'http://www.w3.org'"

  p:subject > a:not

  "selects element p with no child 'a'"

  h1:subject + p:not

  "selects element h1 with no adjacent sibling p"



I think it makes small sense to say for negating attribute selectors you use
this syntax for negating pseudo-classes use that syntax, for negating type
selectors use again another syntax.

Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote +{i}
..weaving a secure, well-formed, standard compliant WWW for =everyone=..
Received on Monday, 9 October 2000 07:54:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:55 UTC