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

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

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Sun, 20 Aug 2006 17:59:56 +0200
Message-ID: <44E886FC.90204@disruptive-innovations.com>
To: "www-style@w3.org" <www-style@w3.org>

David Hyatt wrote:
> I never understood this restriction either.  When I implemented this in 
> WebKit I actually had to add code to make :not more restrictive.

1. not(a and b) is not(a) or not(b), and we already had groups of
    selectors to express the latter.

2. in a selector, all simple selectors express a unique condition
    on a given element/context. Making :not() accept a selector
    instead of a simple selector would have broken that rule.

Received on Sunday, 20 August 2006 16:00:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:25 UTC