Skip to content

Commit 0bebd18

Browse files
committed
Bug fix in parsing size units
1 parent 4751634 commit 0bebd18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sabberworm/CSS/Value/Size.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ private static function getSizeUnits() {
6161
self::$SIZE_UNITS[$iSize][strtolower($val)] = $val;
6262
}
6363

64-
// FIXME: Should we not order the longest units first?
65-
ksort(self::$SIZE_UNITS, SORT_NUMERIC);
64+
krsort(self::$SIZE_UNITS, SORT_NUMERIC);
6665
}
6766

6867
return self::$SIZE_UNITS;

0 commit comments

Comments
 (0)