Type Alias style::values::specified::length::Size

source ·
pub type Size = GenericSize<NonNegativeLengthPercentage>;
Expand description

A specified value for min-width, min-height, width or height property.

Aliased Type§

enum Size {
    LengthPercentage(NonNegative<LengthPercentage>),
    Auto,
}

Variants§

§

LengthPercentage(NonNegative<LengthPercentage>)

§

Auto

Implementations§

source§

impl Size

source

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

Parses, with quirks.

source

pub fn zero_percent() -> Self

Returns 0%.

Trait Implementations§

source§

impl Parse for Size

source§

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

Parse a value of this type. Read more