W3C home > Mailing lists > Public > www-style@w3.org > March 2013

[selectors4] :not(a, b) vs. :not(a):not(b)

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 19 Mar 2013 10:27:32 +0100
Message-ID: <51482F84.1080801@exyr.org>
To: "www-style@w3.org" <www-style@w3.org>

Selectors 4 extends :not() so its argument is a selector list. As I read 
it, itís just syntaxic sugar for multiple :not() pseudo-classes. In 
other words, :not(a, b) is equivalent to :not(a):not(b), just like not(a 
or b) is not(a) and not(b) in boolean logic. Is this correct?

If so, it might be worth pointing out in the spec. Maybe in the 
html|*:not(:link):not(:visited) example, by saying that it can also be 
written html|*:not(:link, :visited)

Simon Sapin
Received on Tuesday, 19 March 2013 09:28:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:27 UTC