提交 9c091c8f 编写于 作者: J Jacob Wright

[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.
上级 c0901827
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册