aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/properties/helpers/animated_properties.mako.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs
index bb6931cdde3..237cf021bea 100644
--- a/components/style/properties/helpers/animated_properties.mako.rs
+++ b/components/style/properties/helpers/animated_properties.mako.rs
@@ -1204,7 +1204,8 @@ impl Animate for ComputedTransformOperation {
) => {
Ok(TransformOperation::Translate(
fx.animate(tx, procedure)?,
- Some(fy.unwrap_or(*fx).animate(&ty.unwrap_or(*tx), procedure)?)
+ Some(fy.unwrap_or(LengthOrPercentage::zero())
+ .animate(&ty.unwrap_or(LengthOrPercentage::zero()), procedure)?)
))
},
(