mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Merge CSSColor into Color.
This commit is contained in:
parent
bf77f81ed6
commit
7568a19688
25 changed files with 181 additions and 264 deletions
|
@ -5,7 +5,7 @@
|
|||
use cssparser::RGBA;
|
||||
use parsing::parse;
|
||||
use style::values::{Auto, Either};
|
||||
use style::values::specified::{CSSColor, Color};
|
||||
use style::values::specified::Color;
|
||||
use style_traits::ToCss;
|
||||
|
||||
#[test]
|
||||
|
@ -33,13 +33,13 @@ fn test_caret_color() {
|
|||
let auto = parse_longhand!(caret_color, "auto");
|
||||
assert_eq!(auto, Either::Second(Auto));
|
||||
|
||||
let blue_color = CSSColor {
|
||||
parsed: Color::RGBA(RGBA {
|
||||
let blue_color = Color::Numeric {
|
||||
parsed: RGBA {
|
||||
red: 0,
|
||||
green: 0,
|
||||
blue: 255,
|
||||
alpha: 255,
|
||||
}),
|
||||
},
|
||||
authored: Some(String::from("blue").into_boxed_str()),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue