pub type LengthOrNumber = GenericLengthOrNumber<Length, Number>;
Expand description
Either a computed <length>
or a <number>
value.
Aliased Type§
enum LengthOrNumber {
Number(f32),
Length(CSSPixelLength),
}
Variants§
Number(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(CSSPixelLength)
A length.