Skip to content
Permalink
Browse files

style: Always serialize aspect-ratio and font shorthand with spaces a…

…round the slash.

Differential Revision: https://phabricator.services.mozilla.com/D46568
  • Loading branch information...
emilio committed Sep 20, 2019
1 parent fee0f2c commit 7d23cfb91e533be7f00bf6e0fc882577da04b198
@@ -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)
}
}
@@ -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)?;
}

0 comments on commit 7d23cfb

Please sign in to comment.
You can’t perform that action at this time.