Closed
Description
If you declare styles inside a component which use the :slotted()
selector then styles applied by any child components which are uses inside that component cannot be overridden using :host
.
/* Parent custom element */
:slotted(*) {
color: green;
}
/* Child custom element */
:host {
color: red;
}
I would expect the child custom element's text to be red, but it is in fact green.
http://jsbin.com/cecuxad/edit?html,console,output
Is there anything in the spec that covers this behaviour?