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 a022fa9 commit f8e42a1Copy full SHA for f8e42a1
src/runtime/internal/dom.ts
@@ -155,7 +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 */';
+ style.textContent = style.textContent || '/* empty */';
159
append((node as Document).head || node, style);
160
return style.sheet as CSSStyleSheet;
161
0 commit comments