I’m working with ProseMirror inside a Shadow DOM, and I noticed that the styles are injected via style-mod.
When I inject a stylesheet using style-mod inside the shadow root, the styles are applied correctly. However, the stylesheet itself doesn’t show up in shadowRoot.styleSheets or shadowRoot.adoptedStyleSheets.
My question is: where does style-mod keep the generated stylesheet when used inside a Shadow DOM? Is there a way to access or identify that stylesheet (for debugging or modification)?
Has anyone else dealt with this while embedding ProseMirror in a Shadow DOM?
I realize this is technically a style-mod question, but since style-mod is by the same author as ProseMirror and is used internally by it, I thought this community might be the best place to ask.