style: Always serialize aspect-ratio and font shorthand with spaces around the slash.

Differential Revision: https://phabricator.services.mozilla.com/D46568
This commit is contained in:
Emilio Cobos Álvarez 2019-09-20 05:02:57 +00:00
parent fee0f2cd23
commit 7d23cfb91e
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ impl ToCss for AspectRatio {
W: fmt::Write, W: fmt::Write,
{ {
self.0.to_css(dest)?; self.0.to_css(dest)?;
dest.write_char('/')?; dest.write_str(" / ")?;
self.1.to_css(dest) self.1.to_css(dest)
} }
} }

View file

@ -221,7 +221,7 @@
self.font_size.to_css(dest)?; self.font_size.to_css(dest)?;
if *self.line_height != LineHeight::normal() { if *self.line_height != LineHeight::normal() {
dest.write_str("/")?; dest.write_str(" / ")?;
self.line_height.to_css(dest)?; self.line_height.to_css(dest)?;
} }