mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
commit
f3d22ee1a8
1 changed files with 8 additions and 4 deletions
|
@ -60,13 +60,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
if let DeclaredValue::Value(ref style) = *self.text_decoration_style {
|
if let DeclaredValue::Value(ref style) = *self.text_decoration_style {
|
||||||
try!(write!(dest, " "));
|
if *style != text_decoration_style::computed_value::T::solid {
|
||||||
try!(style.to_css(dest));
|
try!(write!(dest, " "));
|
||||||
|
try!(style.to_css(dest));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let DeclaredValue::Value(ref color) = *self.text_decoration_color {
|
if let DeclaredValue::Value(ref color) = *self.text_decoration_color {
|
||||||
try!(write!(dest, " "));
|
if color.parsed != CSSParserColor::CurrentColor {
|
||||||
try!(color.to_css(dest));
|
try!(write!(dest, " "));
|
||||||
|
try!(color.to_css(dest));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue