From 7d23cfb91e533be7f00bf6e0fc882577da04b198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 20 Sep 2019 05:02:57 +0000 Subject: [PATCH] style: Always serialize aspect-ratio and font shorthand with spaces around the slash. Differential Revision: https://phabricator.services.mozilla.com/D46568 --- components/style/media_queries/media_feature_expression.rs | 2 +- components/style/properties/shorthands/font.mako.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/media_queries/media_feature_expression.rs b/components/style/media_queries/media_feature_expression.rs index 1eef9e57ebc..d4124450dc5 100644 --- a/components/style/media_queries/media_feature_expression.rs +++ b/components/style/media_queries/media_feature_expression.rs @@ -36,7 +36,7 @@ impl ToCss for AspectRatio { W: fmt::Write, { self.0.to_css(dest)?; - dest.write_char('/')?; + dest.write_str(" / ")?; self.1.to_css(dest) } } diff --git a/components/style/properties/shorthands/font.mako.rs b/components/style/properties/shorthands/font.mako.rs index b6426822666..e3b44d86a36 100644 --- a/components/style/properties/shorthands/font.mako.rs +++ b/components/style/properties/shorthands/font.mako.rs @@ -221,7 +221,7 @@ self.font_size.to_css(dest)?; if *self.line_height != LineHeight::normal() { - dest.write_str("/")?; + dest.write_str(" / ")?; self.line_height.to_css(dest)?; }