mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -468,7 +468,7 @@ impl ToCss for SVGPaint {
|
|||
}
|
||||
|
||||
/// <length> | <percentage> | <number>
|
||||
pub type LengthOrPercentageOrNumber = Either<LengthOrPercentage, Number>;
|
||||
pub type LengthOrPercentageOrNumber = Either<Number, LengthOrPercentage>;
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, Copy, Debug)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue