Skip to main content

style/values/computed/
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//! Computed types for CSS values related to effects.
6
7use crate::values::computed::color::Color;
8use crate::values::computed::length::{Length, NonNegativeLength};
9use crate::values::computed::url::ComputedUrl;
10use crate::values::computed::{Angle, Number};
11use crate::values::generics::effects::BoxShadow as GenericBoxShadow;
12use crate::values::generics::effects::Filter as GenericFilter;
13use crate::values::generics::effects::SimpleShadow as GenericSimpleShadow;
14pub use crate::values::specified::effects::Blend;
15
16/// A computed value for a single shadow of the `box-shadow` property.
17pub type BoxShadow = GenericBoxShadow<Color, Length, NonNegativeLength, Length>;
18
19/// A computed value for a single `filter`.
20pub type Filter = GenericFilter<Angle, Number, Length, SimpleShadow, ComputedUrl>;
21
22/// A computed value for the `drop-shadow()` filter.
23pub type SimpleShadow = GenericSimpleShadow<Color, Length, NonNegativeLength>;