From 039ef3dd53fe134026be41bd82e76fa16f14af58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 21 Feb 2020 00:47:00 +0000 Subject: [PATCH] style: Fix one minor serialization issue which was causing test failures. We were serializing calc(10% + 4px) as calc(10% + calc(4px)). Differential Revision: https://phabricator.services.mozilla.com/D63400 --- components/style/values/generics/calc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/values/generics/calc.rs b/components/style/values/generics/calc.rs index d7ba5e39807..99345b646fc 100644 --- a/components/style/values/generics/calc.rs +++ b/components/style/values/generics/calc.rs @@ -454,10 +454,10 @@ impl CalcNode { dest.write_str(" - ")?; let mut c = child.clone(); c.negate(); - c.to_css(dest)?; + c.to_css_impl(dest, false)?; } else { dest.write_str(" + ")?; - child.to_css(dest)?; + child.to_css_impl(dest, false)?; } } else { first = false;