From b1ef020aa2ac3f1574313f5cd4e161ca7b143285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 30 May 2023 20:46:04 +0200 Subject: [PATCH] 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 --- components/style/properties/shorthands/text.mako.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/style/properties/shorthands/text.mako.rs b/components/style/properties/shorthands/text.mako.rs index 3f892affdf5..eb0c5dc4003 100644 --- a/components/style/properties/shorthands/text.mako.rs +++ b/components/style/properties/shorthands/text.mako.rs @@ -94,6 +94,7 @@ dest.write_str(" ")?; } self.text_decoration_thickness.to_css(dest)?; + has_value = true; } if !is_solid_style {