3 ms·
Understood - I'm more of an old-skool CSS kind of person, but this explanation makes good sense. I had another look at the docs, but I still don't see anything
by GordonS 6y ago
Understood - I'm more of an old-skool CSS kind of person, but this explanation makes good sense.
I had another look at the docs, but I still don't see anything about the benefits of shadow DOM for this library (unless the benefit is the "part thing"?)
- claviska 6y agoThe shadow DOM encapsulates styles and behaviors in the component. Nothing leaks in, nothing leaks out. The concept can get confusing, especially once we start talking about how styles reflect on slotted content (i.e. elements in the "light DOM") vs. shadow DOM elements, but that's probably more relevant to component developers rather than consumers.