Skip to content

Commit

Permalink
Bug fix in parsing size units
Browse files Browse the repository at this point in the history
  • Loading branch information
raxbg committed Jul 22, 2019
1 parent 4751634 commit 0bebd18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Sabberworm/CSS/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ private static function getSizeUnits() {
self::$SIZE_UNITS[$iSize][strtolower($val)] = $val;
}

// FIXME: Should we not order the longest units first?
ksort(self::$SIZE_UNITS, SORT_NUMERIC);
krsort(self::$SIZE_UNITS, SORT_NUMERIC);
}

return self::$SIZE_UNITS;
Expand Down

0 comments on commit 0bebd18

Please sign in to comment.