Make util::str::parse_length work with floats

This commit is contained in:
Corey Farwell 2015-11-14 12:36:18 -05:00
parent 02a8e8dd16
commit 30ea772939
4 changed files with 4 additions and 1 deletions

View file

@ -11,6 +11,7 @@
<div class=hr style="width: 100px"></div>
<div class=hr style="width: 100px"></div>
<div class=hr style="width: 100px"></div>
<div class=hr style="width: 100.99px"></div>
<div class=hr style="width: 0%"></div>
<div class=hr style="width: 0%"></div>
<div class=hr style="width: 0%"></div>

View file

@ -7,6 +7,7 @@
<hr width='100'>
<hr width='100foo'>
<hr width=' 100 '>
<hr width='100.99'>
<hr width='0'>
<hr width='00'>
<hr width='+0'>