pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

Not rendered correctly in Shadow DOM

Open try0 opened this issue 2 years ago • 3 comments

8.1.0

Is there any workaround?

try0 avatar Aug 09 '23 12:08 try0

Could you give more details about your issue?

stephane avatar Sep 17 '23 15:09 stephane

When the Svelvet component is in a Shadow DOM it uses document.querySelector and therefore cannot resolve Edge, Anchor, etc.

https://github.com/open-source-labs/Svelvet/blob/5f835b641887547d4ab6b4cdf491edb21d62a968/src/lib/components/Edge/Edge.svelte#L20

I think it is necessary to implement a provider that can change the execution target from the document to the shadow root.

try0 avatar Sep 18 '23 03:09 try0

Also, need to be able to place styles in the Shadow DOM instead of in the head.

try0 avatar Sep 18 '23 03:09 try0