Add LengthOrNormal type aliases

This commit is contained in:
Nick Price 2016-12-09 17:57:20 -05:00
parent e5f995e7c4
commit 731706041d
2 changed files with 6 additions and 2 deletions

View file

@ -7,7 +7,7 @@ use ordered_float::NotNaN;
use std::fmt;
use style_traits::ToCss;
use super::{Number, ToComputedValue, Context};
use values::{Auto, CSSFloat, Either, None_, specified};
use values::{Auto, CSSFloat, Either, None_, Normal, specified};
pub use cssparser::Color as CSSColor;
pub use super::image::{EndingShape as GradientShape, Gradient, GradientKind, Image};
@ -475,4 +475,6 @@ pub type LengthOrAuto = Either<Length, Auto>;
pub type LengthOrNumber = Either<Length, Number>;
pub type LengthOrNormal = Either<Length, Normal>;
pub type Length = Au;