Skip to content

Commit a022fa9

Browse files
committed
Make inserted style tag non-empty
1 parent d5efa2e commit a022fa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/internal/dom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document {
155155
}
156156

157157
export function append_stylesheet(node: ShadowRoot | Document, style: HTMLStyleElement) {
158+
style.textContent = '/* empty */';
158159
append((node as Document).head || node, style);
159160
return style.sheet as CSSStyleSheet;
160161
}

0 commit comments

Comments
 (0)