diff --git a/components/style/properties/shorthands/text.mako.rs b/components/style/properties/shorthands/text.mako.rs index 03637d557e5..5e71fc08cf3 100644 --- a/components/style/properties/shorthands/text.mako.rs +++ b/components/style/properties/shorthands/text.mako.rs @@ -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(())