Use correct filler y value when animating with an implied-y translate()s

This commit is contained in:
Manish Goregaokar 2018-04-06 07:54:05 -07:00
parent 044f19d914
commit e5afb22184

View file

@ -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)?)
))
},
(