pub type Inset = GenericInset<Percentage, LengthPercentage>;
Expand description
A specified value for inset types.
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>>)
Inset defined by the anchor element.
AnchorSizeFunction(Box<GenericAnchorSizeFunction<LengthPercentage>>)
Inset defined by the size of the anchor element.
Implementations§
source§impl Inset
impl Inset
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