Type Alias style::values::specified::image::CrossFade

source ·
pub type CrossFade = CrossFade<Image, Color, Percentage>;
Expand description

Specified values for CSS cross-fade cross-fade( CrossFadeElement, …) https://drafts.csswg.org/css-images-4/#cross-fade-function

Aliased Type§

struct CrossFade {
    pub elements: OwnedSlice<GenericCrossFadeElement<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>, Color, Percentage>>,
}

Fields§

§elements: OwnedSlice<GenericCrossFadeElement<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>, Color, Percentage>>

All of the image percent pairings passed as arguments to cross-fade.

Implementations§

source§

impl CrossFade

source

fn parse_args<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, cors_mode: CorsMode, flags: ParseImageFlags, ) -> Result<Self, ParseError<'i>>

cross-fade() = cross-fade( # )