Type Alias style::values::specified::font::FontSizeAdjust

source ·
pub type FontSizeAdjust = GenericFontSizeAdjust<FontSizeAdjustFactor>;
Expand description

Specified value for font-size-adjust, intended to help preserve the readability of text when font fallback occurs.

https://drafts.csswg.org/css-fonts-5/#font-size-adjust-prop

Aliased Type§

enum FontSizeAdjust {
    None,
    ExHeight(FontSizeAdjustFactor),
    CapHeight(FontSizeAdjustFactor),
    ChWidth(FontSizeAdjustFactor),
    IcWidth(FontSizeAdjustFactor),
    IcHeight(FontSizeAdjustFactor),
}

Variants§

Trait Implementations§

source§

impl Parse for FontSizeAdjust

source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more
source§

impl ToComputedValue for FontSizeAdjust

source§

type ComputedValue = GenericFontSizeAdjust<NonNegative<f32>>

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