Type Alias style::values::computed::background::BackgroundSize
source · pub type BackgroundSize = BackgroundSize<NonNegativeLengthPercentage>;
Expand description
A computed value for the background-size
property.
Aliased Type§
enum BackgroundSize {
ExplicitSize {
width: GenericLengthPercentageOrAuto<NonNegative<LengthPercentage>>,
height: GenericLengthPercentageOrAuto<NonNegative<LengthPercentage>>,
},
Cover,
Contain,
}
Variants§
ExplicitSize
<width> <height>
Fields
§
width: GenericLengthPercentageOrAuto<NonNegative<LengthPercentage>>
Explicit width.
§
height: GenericLengthPercentageOrAuto<NonNegative<LengthPercentage>>
Explicit height.
Cover
cover
Contain
contain