mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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 {
|
||||
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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue