We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5efa2e commit a022fa9Copy full SHA for a022fa9
src/runtime/internal/dom.ts
@@ -155,6 +155,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document {
155
}
156
157
export function append_stylesheet(node: ShadowRoot | Document, style: HTMLStyleElement) {
158
+ style.textContent = '/* empty */';
159
append((node as Document).head || node, style);
160
return style.sheet as CSSStyleSheet;
161
0 commit comments