pub type Margin = GenericMargin<LengthPercentage>;
Expand description
A computed type for margin
properties.
Aliased Type§
#[repr(C)]pub enum Margin {
LengthPercentage(LengthPercentage),
Auto,
AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>),
AnchorContainingCalcFunction(LengthPercentage),
}
Variants§
LengthPercentage(LengthPercentage)
A <length-percentage>
value.
Auto
An auto
value.
AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>)
Margin size defined by the anchor element.
https://drafts.csswg.org/css-anchor-position-1/#funcdef-anchor-size
AnchorContainingCalcFunction(LengthPercentage)
A <length-percentage>
value, guaranteed to contain calc()
,
which then is guaranteed to contain anchor()
or anchor-size()
.