Type Alias style::values::specified::length::LengthOrNumber

source ·
pub type LengthOrNumber = GenericLengthOrNumber<Length, Number>;
Expand description

Either a <length> or a <number>.

Aliased Type§

enum LengthOrNumber {
    Number(Number),
    Length(Length),
}

Variants§

§

Number(Number)

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(Length)

A length.