3 ms·
I'm developing a browser extension that injects a little popup window onto webpages using content scripts. The shadow DOM is critical to make sure that my exte
by Areibman 6y ago
I'm developing a browser extension that injects a little popup window onto webpages using content scripts.
The shadow DOM is critical to make sure that my extension's styles don't overwrite the page's styles and vice versa. And unlike iframes, it grants the ability to use js state management that extends beyond the shadow DOM root element. So, you can inject multiple shadow DOMs capable of "talking" to each other.