style: Fix the serialization order for the text-decoration shorthand to match the canonical order in the spec

Differential Revision: https://phabricator.services.mozilla.com/D124536
This commit is contained in:
Jonathan Kew 2023-05-27 06:10:30 +02:00 committed by Oriol Brufau
parent f063308e33
commit d299040d55

View file

@ -88,6 +88,13 @@
has_value = true;
}
if !is_auto_thickness {
if has_value {
dest.write_str(" ")?;
}
self.text_decoration_thickness.to_css(dest)?;
}
% if engine == "gecko":
if !is_solid_style {
if has_value {
@ -104,13 +111,6 @@
self.text_decoration_color.to_css(dest)?;
has_value = true;
}
if !is_auto_thickness {
if has_value {
dest.write_str(" ")?;
}
self.text_decoration_thickness.to_css(dest)?;
}
% endif
Ok(())