Skip to main content

PositionAnchor

Type Alias PositionAnchor 

Source
pub type PositionAnchor = TreeScoped<PositionAnchorKeyword>;
Expand description

https://drafts.csswg.org/css-anchor-position-1/#propdef-position-anchor

Aliased Type§

#[repr(C)]
pub struct PositionAnchor { pub value: PositionAnchorKeyword, pub scope: CascadeLevel, }

Fields§

§value: PositionAnchorKeyword

The scoped value.

§scope: CascadeLevel

The cascade level in the shadow tree hierarchy.

Implementations§

Source§

impl PositionAnchor

Source

pub fn none() -> Self

Return the none value.