pub type Size = GenericSize<NonNegativeLengthPercentage>;
Expand description
A specified value for min-width
, min-height
, width
or height
property.
Aliased Type§
enum Size {
LengthPercentage(NonNegative<LengthPercentage>),
Auto,
MaxContent,
MinContent,
FitContent,
Stretch,
AnchorSizeFunction(Box<GenericAnchorSizeFunction<NonNegative<LengthPercentage>>>),
}
Variants§
LengthPercentage(NonNegative<LengthPercentage>)
Auto
MaxContent
MinContent
FitContent
Stretch
AnchorSizeFunction(Box<GenericAnchorSizeFunction<NonNegative<LengthPercentage>>>)
Implementations§
source§impl Size
impl Size
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.
sourcepub fn zero_percent() -> Self
pub fn zero_percent() -> Self
Returns 0%
.