style/values/animated/
effects.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! Animated types for CSS values related to effects.
6
7use crate::values::animated::color::Color;
8use crate::values::computed::length::Length;
9#[cfg(feature = "gecko")]
10use crate::values::computed::url::ComputedUrl;
11use crate::values::computed::{Angle, Number};
12use crate::values::generics::effects::Filter as GenericFilter;
13use crate::values::generics::effects::SimpleShadow as GenericSimpleShadow;
14#[cfg(not(feature = "gecko"))]
15use crate::values::Impossible;
16
17/// An animated value for the `drop-shadow()` filter.
18pub type AnimatedSimpleShadow = GenericSimpleShadow<Color, Length, Length>;
19
20/// An animated value for a single `filter`.
21#[cfg(feature = "gecko")]
22pub type AnimatedFilter =
23    GenericFilter<Angle, Number, Number, Length, AnimatedSimpleShadow, ComputedUrl>;
24
25/// An animated value for a single `filter`.
26#[cfg(not(feature = "gecko"))]
27pub type AnimatedFilter =
28    GenericFilter<Angle, Number, Number, Length, AnimatedSimpleShadow, Impossible>;