Type Alias style::values::specified::background::BackgroundSize

source ·
pub type BackgroundSize = BackgroundSize<NonNegativeLengthPercentage>;
Expand description

A specified value for the background-size property.

Aliased Type§

enum BackgroundSize {
    ExplicitSize {
        width: GenericLengthPercentageOrAuto<NonNegative<LengthPercentage>>,
        height: GenericLengthPercentageOrAuto<NonNegative<LengthPercentage>>,
    },
    Cover,
    Contain,
}

Variants§

§

ExplicitSize

<width> <height>

§

Cover

cover

§

Contain

contain

Trait Implementations§

source§

impl Parse for BackgroundSize

source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more