pub type NonNegativeLengthOrNumber = GenericLengthOrNumber<NonNegativeLength, NonNegativeNumber>;
Expand description
Either a non-negative <length>
or a <number>
.
Aliased Type§
enum NonNegativeLengthOrNumber {
Number(NonNegative<f32>),
Length(NonNegative<CSSPixelLength>),
}
Variants§
Number(NonNegative<f32>)
A number.
NOTE: Numbers need to be before lengths, in order to parse them
first, since 0
should be a number, not the 0px
length.
Length(NonNegative<CSSPixelLength>)
A length.