pub type CalcAnchorFunction = GenericCalcAnchorFunction<Leaf>;Expand description
Specified anchor() function in math functions.
Aliased Type§
#[repr(C)]pub struct CalcAnchorFunction {
pub target_element: TreeScoped<DashedIdent>,
pub side: GenericAnchorSide<Box<GenericCalcNode<Leaf>>>,
pub fallback: Optional<Box<GenericCalcNode<Leaf>>>,
}Fields§
§target_element: TreeScoped<DashedIdent>Anchor name of the element to anchor to. If omitted, selects the implicit anchor element. The shadow cascade order of the tree-scoped anchor name associates the name with the host of the originating stylesheet.
side: GenericAnchorSide<Box<GenericCalcNode<Leaf>>>Where relative to the target anchor element to position the anchored element to.
fallback: Optional<Box<GenericCalcNode<Leaf>>>Value to use in case the anchor function is invalid.