Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const shadow = myElement.createShadowRoot();
const style = document.createElement('style');
style.innerHTML = '@import url(PATH_TO_MY_CSS)';
shadow.appendChild(style);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment