Type Alias layout_2020::taffy::stylo_taffy::convert::stylo::AspectRatio
source · pub(crate) type AspectRatio = GenericAspectRatio<NonNegative<f32>>;
Expand description
A computed value for the aspect-ratio
property.
Aliased Type§
struct AspectRatio {
pub auto: bool,
pub ratio: PreferredRatio<NonNegative<f32>>,
}
Fields§
§auto: bool
Specifiy auto or not.
ratio: PreferredRatio<NonNegative<f32>>
The preferred aspect-ratio value.