pub type MaxSize = GenericMaxSize<NonNegativeLengthPercentage>;
Expand description
A specified value for max-width
or max-height
property.
Aliased Type§
enum MaxSize {
LengthPercentage(NonNegative<LengthPercentage>),
None,
MaxContent,
MinContent,
FitContent,
Stretch,
AnchorSizeFunction(Box<GenericAnchorSizeFunction<NonNegative<LengthPercentage>>>),
}
Variants§
LengthPercentage(NonNegative<LengthPercentage>)
None
MaxContent
MinContent
FitContent
Stretch
AnchorSizeFunction(Box<GenericAnchorSizeFunction<NonNegative<LengthPercentage>>>)
Implementations§
source§impl MaxSize
impl MaxSize
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, with quirks.