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

Re: [css3-selectors] minor question about :not()

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Mon, 19 Oct 2009 17:46:48 -0700
To: fantasai <fantasai.lists@inkedblade.net>
Cc: Andrey Mikhalev <amikhal@abisoft.spb.ru>, W3C Emailing list for WWW Style <www-style@w3.org>
Message-ID: <20091019174648.73719d10@mozilla.com>
fantasai <fantasai.lists@inkedblade.net> wrote:

>    # The negation pseudo-class, :not(X), is a functional notation
>    # taking a simple selector (excluding the negation pseudo-class
>    # itself) as an argument. It represents an element that is not
>    # represented by the argument.
>    #
>    # Note: Since pseudo-elements are not simple selectors, they
>    # are not a valid argument to :not().

I think the (excluding ...) parenthetical is still confusing, and would
suggest instead

# The negation pseudo-class, :not(X), takes a single simple selector
# as an argument.  It matches any element that its argument would not
# match.
#
# Negations may not be nested; :not(...:not(...)...) is invalid.
# Also, since pseudo-elements are not simple selectors, they may not
# be used inside :not() either.

zw
Received on Tuesday, 20 October 2009 00:47:27 UTC

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