Type Alias BackgroundSize

Source
pub type BackgroundSize = BackgroundSize<NonNegativeLengthPercentage>;
Expand description

A specified value for the background-size property.

Aliased Type§

#[repr(C, u8)]
pub 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