Skip to content

Commit

Permalink
style: Always serialize aspect-ratio and font shorthand with spaces a…
Browse files Browse the repository at this point in the history
…round the slash.

Differential Revision: https://phabricator.services.mozilla.com/D46568
  • Loading branch information
emilio committed Oct 9, 2019
1 parent fee0f2c commit 7d23cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/style/media_queries/media_feature_expression.rs
Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/style/properties/shorthands/font.mako.rs
Expand Up @@ -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)?;
}

Expand Down

0 comments on commit 7d23cfb

Please sign in to comment.