mirror of
https://github.com/servo/servo.git
synced 2025-07-05 06:23:39 +01:00
Auto merge of #19581 - emilio:grid-line-serialize, r=canaltinova
style: Fix grid line serialization to avoid redundant spacing. This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1425227. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19581) <!-- Reviewable:end -->
This commit is contained in:
commit
a31fd24ce9
1 changed files with 6 additions and 2 deletions
|
@ -59,12 +59,16 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(ref i) = self.line_num {
|
if let Some(ref i) = self.line_num {
|
||||||
dest.write_str(" ")?;
|
if self.is_span {
|
||||||
|
dest.write_str(" ")?;
|
||||||
|
}
|
||||||
i.to_css(dest)?;
|
i.to_css(dest)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(ref s) = self.ident {
|
if let Some(ref s) = self.ident {
|
||||||
dest.write_str(" ")?;
|
if self.is_span || self.line_num.is_some() {
|
||||||
|
dest.write_str(" ")?;
|
||||||
|
}
|
||||||
s.to_css(dest)?;
|
s.to_css(dest)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue