Skip to content

Commit

Permalink
[fix] attach transition/animation CSS to ownerDocument in iframes (#6680
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jacwright authored Aug 27, 2021
1 parent 6ecdf7e commit 6de3eb7
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 6de3eb7

Please sign in to comment.