W3C home > Mailing lists > Public > www-style@w3.org > January 2015

[selectors] Are really arbitrary selectors allowed in :not()?

From: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Mon, 19 Jan 2015 11:03:24 +0100
Message-ID: <CAERejNai5eziTA5s-P7b_n7sKtbCBZnVWGyTZA+hmze912Q0Ag@mail.gmail.com>
To: www-style list <www-style@w3.org>
Selectors Level 4 removes the restriction to simple selectors for the :not()
pseudo-class and now allows it to take a selector list. The only
restriction mentioned is that pseudo-elements are forbidden.
Does this mean it allows arbitrary selectors like matching descendants?

div:not(.someclass > span)

I assume the selectors should be restricted to aspects of the element as in
Level 3, i.e. :not() takes a list of **simple** selectors.
Otherwise it would cover the functionality of the :has() pseudo-class and
fall into the category of complete selector profiles.

Received on Monday, 19 January 2015 10:04:10 UTC

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