You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmyElementSheet=newCSSStyleSheet();classMyElementextendsHTMLElement{constructor(){super();constshadowRoot=this.attachShadow({mode: "open"});shadowRoot.adoptedStyleSheets=[myElementSheet];}connectedCallback(){// Only actually parse the stylesheet when the first instance is connected.if(myElementSheet.cssRules.length==0){myElementSheet.replaceSync(styleText);}}}
Activity