mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Reverse Number and LengthOrPercentage in LengthOrPercentageOrNumber
"0" must be parsed as the number 0, not the unitless 0px length.
This commit is contained in:
parent
f1287814db
commit
193e1d5569
6 changed files with 18 additions and 11 deletions
|
@ -3782,8 +3782,8 @@ clip-path
|
|||
|
||||
for (mut gecko, servo) in self.gecko.mStrokeDasharray.iter_mut().zip(v.0.into_iter()) {
|
||||
match servo {
|
||||
Either::First(lop) => gecko.set(lop),
|
||||
Either::Second(number) => gecko.set_value(CoordDataValue::Factor(number)),
|
||||
Either::First(number) => gecko.set_value(CoordDataValue::Factor(number)),
|
||||
Either::Second(lop) => gecko.set(lop),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue