pub type Margin = GenericMargin<LengthPercentage>;
Expand description
A specified value for margin
properties.
Aliased Type§
enum Margin {
LengthPercentage(LengthPercentage),
Auto,
AnchorSizeFunction(Box<GenericAnchorSizeFunction<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
Implementations§
source§impl Margin
impl Margin
sourcepub fn parse_quirky<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
allow_quirks: AllowQuirks,
) -> Result<Self, ParseError<'i>>
pub fn parse_quirky<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, allow_quirks: AllowQuirks, ) -> Result<Self, ParseError<'i>>
Parses an inset type, allowing the unitless length quirk. https://quirks.spec.whatwg.org/#the-unitless-length-quirk