Skip to content

Commit a328f71

Browse files
committed
Strip leading zeros from decimal values
1 parent a80739f commit a328f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sabberworm/CSS/Value/Size.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function isRelative() {
5757
}
5858

5959
public function __toString() {
60-
return $this->fSize . ($this->sUnit === null ? '' : $this->sUnit);
60+
return str_replace('0.', '.', $this->fSize) . ($this->sUnit === null ? '' : $this->sUnit);
6161
}
6262

63-
}
63+
}

0 commit comments

Comments
 (0)