style: Serialize text-decoration using Servo

The code introduced in the preceding patch deals with currentColor correctly,
so we should be able to do this now.

This uncovers a bug in the existing serialization code when a non-auto
text-decoration-thickness was used, caught by
css/css-text-decor/parsing/text-decoration-computed.html.

Differential Revision: https://phabricator.services.mozilla.com/D130018
This commit is contained in:
Emilio Cobos Álvarez 2023-05-30 20:46:04 +02:00 committed by Oriol Brufau
parent b3e40479f8
commit b1ef020aa2

View file

@ -94,6 +94,7 @@
dest.write_str(" ")?; dest.write_str(" ")?;
} }
self.text_decoration_thickness.to_css(dest)?; self.text_decoration_thickness.to_css(dest)?;
has_value = true;
} }
if !is_solid_style { if !is_solid_style {