Type Alias style::values::specified::border::BorderImageSideWidth

source ·
pub type BorderImageSideWidth = GenericBorderImageSideWidth<NonNegativeLengthPercentage, NonNegativeNumber>;
Expand description

A specified value for a single side of a border-image-width property.

Aliased Type§

enum BorderImageSideWidth {
    Number(NonNegative<Number>),
    LengthPercentage(NonNegative<LengthPercentage>),
    Auto,
}

Variants§

§

Number(NonNegative<Number>)

<number>

NOTE: Numbers need to be before length-percentagess, in order to parse them first, since 0 should be a number, not the 0px length.

§

LengthPercentage(NonNegative<LengthPercentage>)

<length-or-percentage>

§

Auto

auto

Implementations§

source§

impl BorderImageSideWidth

source

pub fn one() -> Self

Returns 1.