[fix] attach transition/animation CSS to ownerDocument in iframes (#6680)

pull/7738/head
Jacob Wright 5 years ago committed by GitHub
parent 23ec59ff43
commit 1d152bdd45

@ -151,7 +151,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document {
if ((root as ShadowRoot).host) { if ((root as ShadowRoot).host) {
return root as ShadowRoot; return root as ShadowRoot;
} }
return document; return node.ownerDocument;
} }
export function append_empty_stylesheet(node: Node) { export function append_empty_stylesheet(node: Node) {

Loading…
Cancel
Save