Re: [csswg-drafts] [selectors4] Name the “functional pseudo-class like :matches() with 0 specificity”

I'm still fond of `:is()` because of the brevity and clarity, but if that's been decided against would a name like `:selector()` be a good replacement? Something like `:selector()` indicates to me that it would match a CSS selector, and when styled like a pseudo-class (`:()`) it can modify any part of a selector as well. Here are some examples so you can see what it might look like and how it reads in code:

```css
a:selector(.active) { }

:selector(header, footer, nav) a { }
```

It's not explicit that it's ignoring specificity, but it seems less permanent, or less strong than if I had written the same selector directly. What do you think?

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

Received on Friday, 13 July 2018 17:27:31 UTC