Type Alias layout_2020::taffy::stylo_taffy::convert::stylo::MarginVal

source ·
pub(crate) type MarginVal = GenericMargin<LengthPercentage>;

Aliased Type§

enum MarginVal {
    LengthPercentage(LengthPercentage),
    Auto,
    AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>),
}

Variants§

§

LengthPercentage(LengthPercentage)

A <length-percentage> value.

§

Auto

An auto value.

§

AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>)

Margin size defined by the anchor element.

https://drafts.csswg.org/css-anchor-position-1/#funcdef-anchor-size