style::values::specified::calc

Type Alias CalcAnchorSizeFunction

Source
pub type CalcAnchorSizeFunction = GenericCalcAnchorSizeFunction<Leaf>;
Expand description

Specified anchor-size() function in math functions.

Aliased Type§

struct CalcAnchorSizeFunction {
    pub target_element: DashedIdent,
    pub size: AnchorSizeKeyword,
    pub fallback: Optional<Box<GenericCalcNode<Leaf>>>,
}

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<Box<GenericCalcNode<Leaf>>>

Value to use in case the anchor function is invalid.