Skip to content

Commit

Permalink
[fix] Fixes regression in iFrame animations caused by #6570
Browse files Browse the repository at this point in the history
Which is funny, because #6570 was fixing a regression as well, to do with detached dom nodes.
  • Loading branch information
jacwright committed Aug 24, 2021
1 parent c090182 commit 9c091c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/internal/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document {
if ((root as ShadowRoot).host) {
return root as ShadowRoot;
}
return document;
return node.ownerDocument;
}

export function append_empty_stylesheet(node: Node) {
Expand Down

0 comments on commit 9c091c8

Please sign in to comment.