From b70a9fe56424f832e6ff8adc3675168971b2688d Mon Sep 17 00:00:00 2001 From: Charlie Marlow Date: Thu, 6 Jun 2019 17:12:22 +0000 Subject: [PATCH] style: added text-decoration-width support to style system. from-font support will be added later Differential Revision: https://phabricator.services.mozilla.com/D33392 --- components/style/properties/longhands/text.mako.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/style/properties/longhands/text.mako.rs b/components/style/properties/longhands/text.mako.rs index 723e26ae22b..91412d2ee6e 100644 --- a/components/style/properties/longhands/text.mako.rs +++ b/components/style/properties/longhands/text.mako.rs @@ -69,3 +69,13 @@ ${helpers.predefined_type( gecko_pref="layout.css.initial-letter.enabled", spec="https://drafts.csswg.org/css-inline/#sizing-drop-initials", )} + +${helpers.predefined_type( + "text-decoration-width", + "LengthOrAuto", + "computed::LengthOrAuto::auto()", + products="gecko", + animation_value_type="ComputedValue", + gecko_pref="layout.css.text-decoration-width.enabled", + spec="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property" +)}