diff --git a/components/style/matching.rs b/components/style/matching.rs index 0c50445b40d..2f2468413f5 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -433,7 +433,7 @@ trait PrivateMatchMethods: TElement { &pseudo_style); // Handle animations. - if animate { + if animate && !context.shared.traversal_flags.for_animation_only() { self.process_animations(context, &mut old_values, &mut new_values,