shadow
shadow copied to clipboard
Experimental adoptedStyleSheets
https://github.com/2A5F/shadow/issues/214#issuecomment-993566053
For styling :
mounted() { var shadow_css = new CSSStyleSheet; shadow_css.replaceSync(YOUR_CSS) this.$el.shadowRoot.adoptedStyleSheets = [ shadow_css ]; }
Experimental adoptedStyleSheets
const adoptedStyleSheets = new CSSStyleSheet()
adoptedStyleSheets.replace('p { color: green }')
<shadow-root :adopted-style-sheets="[adoptedStyleSheets]">
<p>test adoptedStyleSheets</p>
</shadow-root>
result: 