- From: Tobias Buschor via GitHub <sysbot+gh@w3.org>
- Date: Fri, 14 Sep 2018 08:00:41 +0000
- To: public-css-archive@w3.org
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