[fix] Fixes regression in iFrame animations caused by #6570

Which is funny, because #6570 was fixing a regression as well, to do with detached dom nodes.
pull/6680/head
Jacob Wright 5 years ago
parent c09018271f
commit 9c091c8f85

@ -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) {

Loading…
Cancel
Save