diff --git a/components/style/matching.rs b/components/style/matching.rs index dd7719bdb17..8f9ec017dbd 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -575,7 +575,7 @@ trait PrivateMatchMethods: TElement { &mut pseudo_style, &booleans); // Handle animations. - if booleans.animate { + if booleans.animate && cfg!(feature = "servo") { if let Some(ref mut old) = old_values { self.update_animations_for_cascade(shared_context, old, possibly_expired_animations);