mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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,14 +60,18 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
if let DeclaredValue::Value(ref style) = *self.text_decoration_style {
|
if let DeclaredValue::Value(ref style) = *self.text_decoration_style {
|
||||||
|
if *style != text_decoration_style::computed_value::T::solid {
|
||||||
try!(write!(dest, " "));
|
try!(write!(dest, " "));
|
||||||
try!(style.to_css(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 {
|
||||||
|
if color.parsed != CSSParserColor::CurrentColor {
|
||||||
try!(write!(dest, " "));
|
try!(write!(dest, " "));
|
||||||
try!(color.to_css(dest));
|
try!(color.to_css(dest));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue