pub type AnchorFunction = GenericAnchorFunction<Percentage, LengthPercentage>;
Expand description
The computed value of an anchor()
function.
Aliased Type§
struct AnchorFunction {
pub target_element: DashedIdent,
pub side: AnchorSide<Percentage>,
pub fallback: Optional<LengthPercentage>,
}
Fields§
§target_element: DashedIdent
Anchor name of the element to anchor to. If omitted, selects the implicit anchor element.
side: AnchorSide<Percentage>
Where relative to the target anchor element to position the anchored element to.
fallback: Optional<LengthPercentage>
Value to use in case the anchor function is invalid.