Accessing style-mod generated stylesheet inside Shadow DOM #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I’m using style-mod inside a shadow root. The styles apply fine, but the generated stylesheet isn’t available in shadowRoot.styleSheets or shadowRoot.adoptedStyleSheets.
Where does style-mod keep the constructed stylesheet in this case, and is there a supported way to get a reference to it?
The sheet should be in
adoptedStyleSheets. What made you conclude it isn't?When I tried getting root.adoptedStyleSheets, the array is empty.
This script logs a one-element array for me: