mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Update parse_length to match spec
This commit is contained in:
parent
e66ab111a6
commit
94f08adfc7
4 changed files with 4 additions and 171 deletions
|
@ -66,7 +66,8 @@ pub fn test_parse_length() {
|
|||
|
||||
check("0", LengthOrPercentageOrAuto::Length(Au::from_px(0)));
|
||||
check("0.000%", LengthOrPercentageOrAuto::Percentage(0.0));
|
||||
check("+5.82%", LengthOrPercentageOrAuto::Percentage(0.0582));
|
||||
check("+5.82%", LengthOrPercentageOrAuto::Auto);
|
||||
check("5.82%", LengthOrPercentageOrAuto::Percentage(0.0582));
|
||||
check(
|
||||
"5.82",
|
||||
LengthOrPercentageOrAuto::Length(Au::from_f64_px(5.82)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue