Skip to content

Commit 01109f1

Browse files
committed
Added new units: seconds and degrees
1 parent 11cc1cb commit 01109f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CSSParser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ private function parseNumericValue() {
273273
$sUnit = $this->consume('ex');
274274
} else if($this->comes('px')) {
275275
$sUnit = $this->consume('px');
276+
} else if($this->comes('deg')) {
277+
$sUnit = $this->consume('deg');
278+
} else if($this->comes('s')) {
279+
$sUnit = $this->consume('s');
276280
} else if($this->comes('cm')) {
277281
$sUnit = $this->consume('cm');
278282
} else if($this->comes('pt')) {

0 commit comments

Comments
 (0)