Closed bkjohnson closed 7 years ago
@vpusher do you think this is a good fix?
@bkjohnson Hey ! Thank you for your contribution. The thing is we can't rely on the parent node, we don't know its behavior, its lifecycle, how are handled its children, ... seems risky. By definition, a custom element does nos rely on the outside world.
We need to handle this in the element runtime/dom itself. Basically, in its shadow root.
@bkjohnson see #4 if it fits your needs.
This is a fix for #2
My guess is that styles in
<head>
aren't able to trickle down into the shadow DOM of children elements.