Type Alias style::values::specified::font::LineHeight

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

A specified value for the line-height property.

Aliased Type§

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

§

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