Auto merge of #15336 - upsuper:text-decoration, r=Manishearth

Ignore initial values in text-decoration

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15336)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-02-01 23:44:51 -08:00 committed by GitHub
commit f3d22ee1a8

View file

@ -60,13 +60,17 @@
};
if let DeclaredValue::Value(ref style) = *self.text_decoration_style {
try!(write!(dest, " "));
try!(style.to_css(dest));
if *style != text_decoration_style::computed_value::T::solid {
try!(write!(dest, " "));
try!(style.to_css(dest));
}
}
if let DeclaredValue::Value(ref color) = *self.text_decoration_color {
try!(write!(dest, " "));
try!(color.to_css(dest));
if color.parsed != CSSParserColor::CurrentColor {
try!(write!(dest, " "));
try!(color.to_css(dest));
}
}
Ok(())