We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c35a5fc commit b153413Copy full SHA for b153413
src/values/number.rs
@@ -40,7 +40,7 @@ impl ToCss for CSSNumber {
40
cssparser::ToCss::to_css(self, &mut s)?;
41
if number < 0.0 {
42
dest.write_char('-')?;
43
- dest.write_str(s.trim_start_matches("-0"))
+ dest.write_str(s.trim_start_matches("-").trim_start_matches("0"))
44
} else {
45
dest.write_str(s.trim_start_matches('0'))
46
}
0 commit comments