style: Move outline-style outside of mako

This commit is contained in:
CYBAI 2017-12-12 01:46:20 +08:00
parent 0fa605d243
commit b9b91b33be
8 changed files with 87 additions and 56 deletions

View file

@ -511,7 +511,7 @@ mod shorthand_serialization {
}
mod outline {
use style::values::Either;
use style::values::specified::outline::OutlineStyle;
use super::*;
#[test]
@ -519,7 +519,7 @@ mod shorthand_serialization {
let mut properties = Vec::new();
let width = BorderSideWidth::Length(Length::from_px(4f32));
let style = Either::Second(BorderStyle::Solid);
let style = OutlineStyle::Other(BorderStyle::Solid);
let color = RGBA::new(255, 0, 0, 255).into();
properties.push(PropertyDeclaration::OutlineWidth(width));
@ -535,7 +535,7 @@ mod shorthand_serialization {
let mut properties = Vec::new();
let width = BorderSideWidth::Length(Length::from_px(4f32));
let style = Either::First(Auto);
let style = OutlineStyle::Auto;
let color = RGBA::new(255, 0, 0, 255).into();
properties.push(PropertyDeclaration::OutlineWidth(width));
properties.push(PropertyDeclaration::OutlineStyle(style));