Closed Bug 1980141 Opened 10 days ago Closed 3 days ago

[wpt-sync] Sync PR 54048 - Update letter-spacing to use ComputedLetterSpacing() for animation

Categories

(Core :: DOM: Animation, task, P4)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 54048 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/54048
Details from upstream follow.

Minseong Kim <jja08111@gmail.com> wrote:

Update letter-spacing to use ComputedLetterSpacing() for animation

LengthPropertyFunctions::GetInitialLength was using
style.LetterSpacing() to get the value for the letter-spacing
property. This is incorrect as it only returns a fixed float value and
does not correctly handle percentage or calc() values.

This CL switches to using style.ComputedLetterSpacing() which returns
the correct computed Length object.

The corresponding Web Platform Test is also updated to reflect that the
animation type for letter-spacing is lengthPercentageOrCalc.

Bug: 327740939
Change-Id: I1e093692ec3802a378486483f85af7a8113eaca9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6796854
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Koji Ishii \<kojii@chromium.org>
Commit-Queue: 김민성 \<jja08111@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1494078}

Component: web-platform-tests → DOM: Animation
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 6 tests and 496 subtests

Status Summary

Firefox

OK : 6
PASS: 2328
FAIL: 12

Chrome

OK : 6
PASS: 2404
FAIL: 75

Safari

OK : 6
PASS: 2406
FAIL: 20

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/77256555dd97 https://hg.mozilla.org/integration/autoland/rev/d506dfa90cbf [wpt PR 54048] - Update letter-spacing to use ComputedLetterSpacing() for animation, a=testonly
Status: NEW → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
You need to log in before you can comment on or make changes to this bug.