Closed da1z closed 5 months ago
This is how shadow DOM works. Quoting the specification on how cascading styles works:
The top-level elements of a shadow tree inherit from their host element.
See also this explanation on StackOverflow: https://stackoverflow.com/questions/49709676/light-dom-style-leaking-into-shadow-dom
Am I doing something wrong? as i understand global styles should no apply to shadow root elements but for some reason it does. My code:
index.tsx
and result is text is green