Type Alias style::values::specified::transform::Scale

source ·
pub type Scale = Scale<Number>;
Expand description

A specified CSS scale

Aliased Type§

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