Type Alias style::values::specified::position::AnchorFunction

source ·
pub type AnchorFunction = GenericAnchorFunction<Percentage, LengthPercentage>;
Expand description

A specified value for 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.

Trait Implementations§

source§

impl Parse for AnchorFunction

source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more