Type Alias Inset

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

A computed type for inset properties.

Aliased Type§

#[repr(C)]
pub enum Inset { LengthPercentage(LengthPercentage), Auto, AnchorFunction(Box<GenericAnchorFunction<Percentage, LengthPercentage>>), AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>), AnchorContainingCalcFunction(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

§

AnchorContainingCalcFunction(LengthPercentage)

A <length-percentage> value, guaranteed to contain calc(), which then is guaranteed to contain anchor() or anchor-size().