style::values::specified::length

Type Alias MaxSize

Source
pub type MaxSize = GenericMaxSize<NonNegativeLengthPercentage>;
Expand description

A specified value for max-width or max-height property.

Aliased Type§

enum MaxSize {
    LengthPercentage(NonNegative<LengthPercentage>),
    None,
    MaxContent,
    MinContent,
    FitContent,
    Stretch,
    FitContentFunction(NonNegative<LengthPercentage>),
    AnchorSizeFunction(Box<GenericAnchorSizeFunction<NonNegative<LengthPercentage>>>),
    AnchorContainingCalcFunction(NonNegative<LengthPercentage>),
}

Variants§

§

LengthPercentage(NonNegative<LengthPercentage>)

§

None

§

MaxContent

§

MinContent

§

FitContent

§

Stretch

§

FitContentFunction(NonNegative<LengthPercentage>)

§

AnchorSizeFunction(Box<GenericAnchorSizeFunction<NonNegative<LengthPercentage>>>)

§

AnchorContainingCalcFunction(NonNegative<LengthPercentage>)

Implementations§

Source§

impl MaxSize

Source

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

Parses, with quirks.

Trait Implementations§

Source§

impl Parse for MaxSize

Source§

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

Parse a value of this type. Read more