logoalt Hacker News

marcosdumayyesterday at 8:12 PM1 replyview on HN

> CSS variables leak in to it from the "light"/regular DOM.

> You can query elements in it from the host with `shadowRoot.querySelector()`.

> The elements also inherit styles from parents

Why do people keep talking about those things as if they were problems?


Replies

lelandfeyesterday at 9:24 PM

They ain't! Long live the cascade!

But when the desired outcome is "complete separation from the surrounding page," those are pretty serious problems!