From 16dd584bcc181df43620291f14efacdcfa9c3e80 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 2 May 2017 00:45:20 +0200 Subject: [PATCH] Fix serialisation of place-content --- components/style/properties/shorthand/position.mako.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/style/properties/shorthand/position.mako.rs b/components/style/properties/shorthand/position.mako.rs index bd43b4f2155..017b592edea 100644 --- a/components/style/properties/shorthand/position.mako.rs +++ b/components/style/properties/shorthand/position.mako.rs @@ -266,13 +266,12 @@ impl<'a> ToCss for LonghandsToSerialize<'a> { fn to_css(&self, dest: &mut W) -> fmt::Result where W: fmt::Write { - if self.align_content == self.justify_content { - self.align_content.to_css(dest) - } else { - self.justify_content.to_css(dest)?; + self.align_content.to_css(dest)?; + if self.align_content != self.justify_content { dest.write_str(" ")?; - self.justify_content.to_css(dest) + self.justify_content.to_css(dest)?; } + Ok(()) } }