Open
Description
e.g: :custom-element
This pseudo-class can make the @socpe
style not affect the content of the custom element:
<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