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

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