Type Alias style::values::computed::length::MaxSize

source ·
pub type MaxSize = GenericMaxSize<NonNegativeLengthPercentage>;
Expand description

A computed value for max-width or min-height property.

Aliased Type§

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

Variants§

§

LengthPercentage(NonNegative<LengthPercentage>)

§

None

§

MaxContent

§

MinContent

§

FitContent

§

Stretch

§

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

Implementations§

source§

impl MaxSize

source

pub fn to_used_value(&self, percentage_basis: Au) -> Option<Au>

Convert the computed value into used value.

source

pub fn maybe_to_used_value(&self, percentage_basis: Option<Au>) -> Option<Au>

Convert the computed value into used value if there is enough information.