Closed Bug 1952028 Opened 15 days ago Closed 3 days ago

[wpt-sync] Sync PR 51137 - Resolve colors where possible when creating an animation effect

Categories

(Core :: CSS Transitions and Animations, task, P4)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Kevin Babbitt <kbabbitt@microsoft.com> wrote:

Resolve colors where possible when creating an animation effect

CSS color-mix and relative colors should not be resolved until used-
value time. We have the code to implement that behavior, controlled by
flag CSSRelativeColorLateResolveAlways. However, enabling that flag
caused issues with animation of relative colors, since the animation
code was expecting the previous behavior of resolving at parse time.

The fix is to resolve these values in color animation setup where
possible. Cases such as a color-mix using currentcolor are not
handled; animating such values will require more complex interpolation
logic to account for the fact that currentcolor may itself change over
the course of an animation.

This CL also re-enables the CSSRelativeColorLateResolveAlways flag since
the issue that caused it to be disabled should now be fixed.

Bug: 390847913
Change-Id: I4b728b3ce44097d0e6960426408b63570c706031
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6300056
Commit-Queue: Kevin Babbitt \<kbabbitt@microsoft.com>
Reviewed-by: Kevin Ellis \<kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428446}

Component: web-platform-tests → CSS Transitions and Animations
Product: Testing → Core

CI Results

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

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
FAIL: 2

Chrome

OK : 1
FAIL: 2

Safari

OK : 1
PASS: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c191974cae54 [wpt PR 51137] - Resolve colors where possible when creating an animation effect, a=testonly https://hg.mozilla.org/integration/autoland/rev/c1c4054e3af2 [wpt PR 51137] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.