- From: mantou via GitHub <sysbot+gh@w3.org>
- Date: Sun, 09 Jun 2024 08:08:41 +0000
- To: public-css-archive@w3.org
mantou132 has just created a new issue for https://github.com/w3c/csswg-drafts:
== [selectors] Add selector match custom element ==
e.g: `:custom-element`
This pseudo-class can make the `@socpe` style not affect the content of the custom element:
```html
<style>
@scope (.main) to (:custom-element) {
p { /** **/ }
}
</style>
<p>my content</p>
<any-custom-element>
<p>component or third-party content</p>
</any-custom-element>
```
StackOverflow issue: https://stackoverflow.com/questions/31480950/custom-element-selector
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10407 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 9 June 2024 08:08:42 UTC