Type Alias style::values::computed::font::LineHeight

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

A computed value for the line-height property.

Aliased Type§

enum LineHeight {
    Normal,
    Number(NonNegative<f32>),
    Length(NonNegative<CSSPixelLength>),
}

Variants§

§

Normal

normal

§

Number(NonNegative<f32>)

<number>

§

Length(NonNegative<CSSPixelLength>)

<length-percentage>

Trait Implementations§

source§

impl ToResolvedValue for LineHeight

§

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

The resolved value type we’re going to be converted to.
source§

fn to_resolved_value(self, context: &ResolvedContext<'_>) -> Self::ResolvedValue

Convert a resolved value to a resolved value.
source§

fn from_resolved_value(value: Self::ResolvedValue) -> Self

Convert a resolved value to resolved value form.