Type Alias TextDecorationTrim

Source
pub type TextDecorationTrim = GenericTextDecorationTrim<Length>;
Expand description

Implements type for text-decoration-trim property

Aliased Type§

#[repr(C, u8)]
pub enum TextDecorationTrim { Auto, Length { start: Length, end: Length, }, }

Variants§

§

Auto

auto value

§

Length

Start and end length values.

Fields

§start: Length

Implementations§

Source§

impl TextDecorationTrim

Source

pub fn auto() -> Self

Auto value.

Source

pub fn is_auto(&self) -> bool

Whether this is the Auto value.

Trait Implementations§

Source§

impl Parse for TextDecorationTrim

Source§

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

Parse a value of this type. Read more