Day 45: the specificity of ::slotted() content

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
When you pass an element to a web component through a , you can select that element using the ::slotted() pseudo-element and apply additional styles.Let's take the following component. There's a paragraph in the shadow DOM and another paragraph coming from the light DOM, passed through a , and there's a global style turning the background color...