Type Definition style::values::computed::length::Size

source ·
pub type Size = GenericSize<NonNegativeLengthPercentage>;
Expand description

A computed value for min-width, min-height, width or height property.

Implementations§

source§

impl Size

source

pub fn to_used_value(&self, percentage_basis: Au) -> Option<Au>

Convert the computed value into used value.

source

pub fn is_definitely_zero(&self) -> bool

Returns true if the computed value is absolute 0 or 0%.