BaselineShift

Type Alias BaselineShift 

Source
pub type BaselineShift = GenericBaselineShift<LengthPercentage>;
Expand description

A specified value for the baseline-shift property.

Aliased Type§

#[repr(C, u8)]
pub enum BaselineShift { Keyword(BaselineShiftKeyword), Length(LengthPercentage), }

Variants§

§

Keyword(BaselineShiftKeyword)

One of the baseline-shift keywords

§

Length(LengthPercentage)

Raise (positive value) or lower (negative value) by the specified length or specified percentage of the line-height.

Trait Implementations§

Source§

impl Parse for BaselineShift

Source§

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

Parse a value of this type. Read more