Type Alias style::values::computed::position::Inset

source ·
pub type Inset = GenericInset<Percentage, LengthPercentage>;
Expand description

A computed type for inset properties.

Aliased Type§

enum Inset {
    LengthPercentage(LengthPercentage),
    Auto,
    AnchorFunction(Box<GenericAnchorFunction<Percentage, LengthPercentage>>),
    AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>),
}

Variants§

§

LengthPercentage(LengthPercentage)

A <length-percentage> value.

§

Auto

An auto value.

§

AnchorFunction(Box<GenericAnchorFunction<Percentage, LengthPercentage>>)

§

AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>)

Inset defined by the size of the anchor element.

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