From b6c88745e8b16434ffa4504f8673165e0edeb6fe Mon Sep 17 00:00:00 2001 From: Charlie Marlow Date: Tue, 4 Jun 2019 22:04:14 +0000 Subject: [PATCH] style: adding support for CSS text underline offset to the style system. Support for from-font listed in the CSS spec will be implemented in a later bug. Differential Revision: https://phabricator.services.mozilla.com/D33233 --- .../style/properties/longhands/inherited_text.mako.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/style/properties/longhands/inherited_text.mako.rs b/components/style/properties/longhands/inherited_text.mako.rs index 58331efa6bdc..cb319f187704 100644 --- a/components/style/properties/longhands/inherited_text.mako.rs +++ b/components/style/properties/longhands/inherited_text.mako.rs @@ -374,3 +374,14 @@ ${helpers.single_keyword( products="gecko", spec="Nonstandard", )} + +// text underline offset +${helpers.predefined_type( + "text-underline-offset", + "LengthOrAuto", + "computed::LengthOrAuto::auto()", + products="gecko", + animation_value_type="ComputedValue", + gecko_pref="layout.css.text-underline-offset.enabled", + spec="https://drafts.csswg.org/css-text-decor-4/#underline-offset", +)}