Open Bug 1927811 Opened 2 years ago Updated 2 years ago

Support percent values for '-moz-text-size-adjust'

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

Details

We don't support percentage values for text-size-adjust (or rather -moz-text-size-adjust), as noted here:

https://searchfox.org/mozilla-central/rev/a547d790fa7facb8d0addb9197797dc52b31e8f2/servo/components/style/properties/longhands/inherited_text.mako.rs#41-44

// TODO: Support <percentage>
${helpers.single_keyword(
    "-moz-text-size-adjust",
    "auto none",

This is the primary reason why we fail several WPTs, e.g. this one:
https://wpt.fyi/results/css/css-size-adjust/animations/text-size-adjust-interpolation.html
https://wpt.live/css/css-size-adjust/animations/text-size-adjust-interpolation.html

Here's the MDN page on this property, for reference:
https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust

(This came across my radar because this property was proposed as being [part of] an interop-2025 focus area, in https://github.com/web-platform-tests/interop/issues/722 )

(In reply to Daniel Holbert [:dholbert] from comment #0)

This is the primary reason why we fail several WPTs, e.g. this one:
https://wpt.fyi/results/css/css-size-adjust/animations/text-size-adjust-interpolation.html
https://wpt.live/css/css-size-adjust/animations/text-size-adjust-interpolation.html

(I guess the more proximal reason that we fail that WPT & others is that we don't support the unprefixed spelling. But if we did, then the lack-of-percent values would still make us fail most/all of that test.)

Summary: Support percent values for 'text-size-adjust' → Support percent values for '-moz-text-size-adjust'
You need to log in before you can comment on or make changes to this bug.