Type Alias style::values::specified::image::EndingShape

source ·
pub type EndingShape = EndingShape<NonNegativeLength, NonNegativeLengthPercentage>;
Expand description

A specified ending shape.

Aliased Type§

enum EndingShape {
    Circle(GenericCircle<NonNegative<Length>>),
    Ellipse(GenericEllipse<NonNegative<LengthPercentage>>),
}

Variants§

§

Circle(GenericCircle<NonNegative<Length>>)

A circular gradient.

§

Ellipse(GenericEllipse<NonNegative<LengthPercentage>>)

An elliptic gradient.

Implementations§

source§

impl EndingShape

source

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