Type Alias LineHeight

Source
pub type LineHeight = GenericLineHeight<NonNegativeNumber, NonNegativeLengthPercentage>;
Expand description

A specified value for the line-height property.

Aliased Type§

#[repr(C, u8)]
pub enum LineHeight { Normal, Number(NonNegative<Number>), Length(NonNegative<LengthPercentage>), }

Variants§

§

Normal

normal

§

Number(NonNegative<Number>)

<number>

§

Length(NonNegative<LengthPercentage>)

<length-percentage>

Trait Implementations§

Source§

impl ToComputedValue for LineHeight

Source§

type ComputedValue = GenericLineHeight<NonNegative<f32>, NonNegative<CSSPixelLength>>

The computed value type we’re going to be converted to.
Source§

fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.
Source§

fn from_computed_value(computed: &Self::ComputedValue) -> Self

Convert a computed value to specified value form. Read more