mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Ignore initial values in text-decoration
This commit is contained in:
parent
8b9dc9392b
commit
c8970f7e21
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