ProseMirror with Shadow DOM: locating style-mod generated stylesheet

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.

ProseMirror does not inject style sheets and does not depend on style-mod. So I’m going to assume you’re talking about CodeMirror here.

Please don’t ask the same question both on the forum and in the issue tracker. I’ve responded to your issue.