Type Alias Scale

Source
pub type Scale = Scale<Number>;
Expand description

A specified CSS scale

Aliased Type§

#[repr(C, u8)]
pub enum Scale { None, Scale(Number, Number, Number), }

Variants§

§

None

‘none’

§

Scale(Number, Number, Number)

{1,3}’

Trait Implementations§

Source§

impl Parse for Scale

Source§

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

Scale accepts | , so we parse it as NumberOrPercentage, and then convert into an Number if it’s a Percentage. https://github.com/w3c/csswg-drafts/pull/4396