Unify specified Color type between Stylo and Servo.

This commit is contained in:
Xidorn Quan 2017-06-08 10:42:24 +10:00
parent f3610d2724
commit d0d170767d
5 changed files with 82 additions and 96 deletions

View file

@ -160,7 +160,7 @@ fn test_parse_stylesheet() {
(PropertyDeclaration::BackgroundColor(
longhands::background_color::SpecifiedValue {
authored: Some("blue".to_owned().into_boxed_str()),
parsed: cssparser::Color::RGBA(cssparser::RGBA::new(0, 0, 255, 255)),
parsed: cssparser::RGBA::new(0, 0, 255, 255).into(),
}
),
Importance::Normal),