[csswg-drafts] [selectors4] ":scope" inside ":matches"-like funktions?

nuxodin has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors4] ":scope" inside ":matches"-like funktions? ==
Wouldn't it be useful in ":maches"-like functions to have a reference to the current scope?  

:matches https://www.w3.org/TR/selectors-4/#matches-pseudo  
:scope https://www.w3.org/TR/selectors-4/#scope-pseudo  

Instead of this:
```css
button.superTheme,
.superTheme button {
    color:white;
    background:black;
}
```
one could write:
```css
button:matches(.superTheme .superTheme :scope)
```

I hope I'm not writing completely stupid stuff. :)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3108 using your GitHub account

Received on Friday, 14 September 2018 08:00:46 UTC