mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
parent
f159b5cb10
commit
5821ff77db
8 changed files with 38 additions and 97 deletions
|
@ -7,7 +7,7 @@ use ordered_float::NotNaN;
|
|||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
use super::{Number, ToComputedValue, Context};
|
||||
use values::{CSSFloat, Either, None_, specified};
|
||||
use values::{Auto, CSSFloat, Either, None_, specified};
|
||||
|
||||
pub use cssparser::Color as CSSColor;
|
||||
pub use super::image::{EndingShape as GradientShape, Gradient, GradientKind, Image};
|
||||
|
@ -471,6 +471,8 @@ impl ToCss for LengthOrPercentageOrNone {
|
|||
|
||||
pub type LengthOrNone = Either<Length, None_>;
|
||||
|
||||
pub type LengthOrAuto = Either<Length, Auto>;
|
||||
|
||||
pub type LengthOrNumber = Either<Length, Number>;
|
||||
|
||||
pub type Length = Au;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue