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
This commit is contained in:
Charlie Marlow 2019-06-04 22:04:14 +00:00 committed by Emilio Cobos Álvarez
parent 1f5bed4473
commit b6c88745e8
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -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",
)}