Type Definition style::values::computed::text::LineHeight

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

A computed value for the line-height property.

Trait Implementations§


impl ToResolvedValue for LineHeight


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

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

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

Convert a resolved value to a resolved value.

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

Convert a resolved value to resolved value form.