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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am trying to apply css to shadow dom for my browser extension. I tried:
let shadowRoot = hostElement.attachShadow({ mode: "open" });
let styleElement = document.createElement("style");
styleElement.textContent = CssBaseline.flushToHTML();
shadowRoot.appendChild(styleElement);
render(app, shadowRoot);
The CssBaseline.flushToHTML is empty. CssBaseline.flush also returns an empty array. What am I doing wrong here? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions