Type Alias style::values::specified::length::NonNegativeLengthOrNumber

source ·
pub type NonNegativeLengthOrNumber = GenericLengthOrNumber<NonNegativeLength, NonNegativeNumber>;
Expand description

A specified non-negative <length> | <number>.

Aliased Type§

enum NonNegativeLengthOrNumber {
    Number(NonNegative<Number>),
    Length(NonNegative<Length>),
}

Variants§

§

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

A length.