Type Alias style::values::computed::length::AnchorSizeFunction

source ·
pub type AnchorSizeFunction = GenericAnchorSizeFunction<LengthPercentage>;
Expand description

A computed value for anchor-size runction.

Aliased Type§

struct AnchorSizeFunction {
    pub target_element: DashedIdent,
    pub size: AnchorSizeKeyword,
    pub fallback: Optional<LengthPercentage>,
}

Fields§

§target_element: DashedIdent

Anchor name of the element to anchor to. If omitted (i.e. empty), selects the implicit anchor element.

§size: AnchorSizeKeyword

Size of the positioned element, expressed in that of the anchor element. If omitted, defaults to the axis of the property the function is used in.

§fallback: Optional<LengthPercentage>

Value to use in case the anchor function is invalid.