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
impl Parse for BaselineShift
Source§fn parse(
context: &ParserContext<'_>,
input: &mut Parser<'_>,
) -> Result<Self, ParseError>
fn parse( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>
Parse a value of this type. Read more