Skip to content

Commit c4509f5

Browse files
authored
Merge pull request #167 from raxbg/fix/vm_size_parsing
Bug fix in parsing size units
2 parents 4751634 + 0bebd18 commit c4509f5

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)