diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 11ae9115fe8..b079f30b1a8 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -1829,7 +1829,7 @@ impl Animate for Quaternion { self.3 * other.3) .min(1.0).max(-1.0); - if dot == 1.0 { + if dot.abs() == 1.0 { return Ok(*self); }