mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Fix one minor serialization issue which was causing test failures.
We were serializing calc(10% + 4px) as calc(10% + calc(4px)). Differential Revision: https://phabricator.services.mozilla.com/D63400
This commit is contained in:
parent
c0f2a4e785
commit
039ef3dd53
1 changed files with 2 additions and 2 deletions
|
@ -454,10 +454,10 @@ impl<L: CalcNodeLeaf> CalcNode<L> {
|
|||
dest.write_str(" - ")?;
|
||||
let mut c = child.clone();
|
||||
c.negate();
|
||||
c.to_css(dest)?;
|
||||
c.to_css_impl(dest, false)?;
|
||||
} else {
|
||||
dest.write_str(" + ")?;
|
||||
child.to_css(dest)?;
|
||||
child.to_css_impl(dest, false)?;
|
||||
}
|
||||
} else {
|
||||
first = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue