DEV Community


Discussion on: The journey of Web Components: wrong ways, lacking parts and promising paths

webpadawan profile image
Serhii Kulykov Author • Edited

There is an issue to fix that already so I hope it would be resolved in future:

In the meanwhile, you can workaround that using delete Document.prototype.adoptedStyleSheets.

When called prior to loading LitElement, this will make it act like the feature does not exist and place style elements into the shadowRoot (same as Firefox and Safari).

Forem Open with the Forem app