W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

Re: [csswg-drafts] [selectors] New universal selector including tree-abiding pseudo-elements (#4565)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Aug 2020 15:46:05 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-678359616-1598024764-sysbot+gh@w3.org>
The use-case here seems pretty valid. I much prefer the `::*` suggestion from @ExE-Boss; it keeps the overall structure of the selector (the fact that you are definitely selecting into the pseudo-tree) more obvious.  The only potentially tricky bit is that it can select multiple pseudo-levels in, but that's fine I think.

(That *is* intended, right? So `::*:hover` matches both `::before:hover` and `::before::marker:hover`?)

This also makes your "invalid" cases clearer - `::*:root` is more clearly invalid, since you're trying to apply `:root` to an (unnamed) pseudo-element.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4565#issuecomment-678359616 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 21 August 2020 15:46:08 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC