Skip to content

Commit

Permalink
style: adding support for CSS text underline offset to the style system.
Browse files Browse the repository at this point in the history
Support for from-font listed in the CSS spec will be implemented in a later bug.

Differential Revision: https://phabricator.services.mozilla.com/D33233
  • Loading branch information
Charlie Marlow authored and emilio committed Jun 25, 2019
1 parent 1f5bed4 commit b6c8874
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/style/properties/longhands/inherited_text.mako.rs
Expand Up @@ -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",
)}

0 comments on commit b6c8874

Please sign in to comment.