3 ms·
This is actually perfect for shadow dom, because it allows composition. You gotta remember, Shadow Dom is a double edged sword, - while it prevents styles from
by gravity13 11y ago
This is actually perfect for shadow dom, because it allows composition.
You gotta remember, Shadow Dom is a double edged sword, - while it prevents styles from leaking in, it prevents styles from cascading too. And sometimes, cascading was a good thing. Without it, you need to reapply base styles, and that's annoying. With this approach, you can compose component styling by declaring what to inherit.