pub type MaxSize = GenericMaxSize<NonNegativeLengthPercentage>;Expand description
A computed value for max-width or max-height property.
Aliased Type§
#[repr(C, u8)]pub enum MaxSize {
LengthPercentage(NonNegative<LengthPercentage>),
None,
MaxContent,
MinContent,
FitContent,
WebkitFillAvailable,
Stretch,
FitContentFunction(NonNegative<LengthPercentage>),
AnchorSizeFunction(Box<GenericAnchorSizeFunction<GenericMaxSize<NonNegative<LengthPercentage>>>>),
AnchorContainingCalcFunction(NonNegative<LengthPercentage>),
}Variants§
LengthPercentage(NonNegative<LengthPercentage>)
None
MaxContent
MinContent
FitContent
WebkitFillAvailable
Stretch
FitContentFunction(NonNegative<LengthPercentage>)
AnchorSizeFunction(Box<GenericAnchorSizeFunction<GenericMaxSize<NonNegative<LengthPercentage>>>>)
AnchorContainingCalcFunction(NonNegative<LengthPercentage>)
Trait Implementations§
Source§impl TryTacticAdjustment for MaxSize
impl TryTacticAdjustment for MaxSize
Source§fn try_tactic_adjustment(
&mut self,
old_side: PhysicalSide,
new_side: PhysicalSide,
)
fn try_tactic_adjustment( &mut self, old_side: PhysicalSide, new_side: PhysicalSide, )
Performs the adjustments necessary given an old side we’re relative to, and a new side
we’re relative to.