Type Alias style::values::computed::box_::ContainIntrinsicSize

source ·
pub type ContainIntrinsicSize = GenericContainIntrinsicSize<NonNegativeLength>;
Expand description

A computed value for the contain-intrinsic-size property.

Aliased Type§

enum ContainIntrinsicSize {
    None,
    AutoNone,
    Length(NonNegative<CSSPixelLength>),
    AutoLength(NonNegative<CSSPixelLength>),
}

Variants§

§

None

The keyword none.

§

AutoNone

The keywords ‘auto none’,

§

Length(NonNegative<CSSPixelLength>)

A non-negative length.

§

AutoLength(NonNegative<CSSPixelLength>)

“auto

Implementations§

source§

impl ContainIntrinsicSize

source

pub fn add_auto_if_needed(&self) -> Option<Self>

Converts contain-intrinsic-size to auto style.