DEV Community

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

Collapse
 
webpadawan profile image
Serhii Kulykov • Edited

There is an issue to fix that already so I hope it would be resolved in future:
bugs.chromium.org/p/chromium/issue...

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).