Closed Bug 2018771 Opened 9 months ago Closed 8 months ago

[wpt-sync] Sync PR 57995 - Cancel composited animation affecting important property

Categories

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

task

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Kevin Ellis <kevers@google.com> wrote:

Cancel composited animation affecting important property

An animation affecting a important property still runs, but is
unable to run on the compositor as it doesn't know about
composite ordering. The problem is that after a composited animation
starts on the compositor, if the base style value is then marked as
important, the we need to stop the animation on the compositor.
It is to still run on main as it still generates observable events.

Halting an animation on the compositor when the property becomes
important was sufficient for transform animations, but not for
opacity. The property tree builder has a fast path for opacity that
can be taken even if the animation is not to be composited. An
additional step was needed for opacity animations to ensure that
the fast path isn't used when the opacity property is marked as
important.

Note: though the animation still needs to run on main, it would
only need to tick every frame if a CSS transition. CSS animations
and programmatic animation effects will not be applied during the
style cascade if the base property is marked important. Logged as
crbug.com/486155924. Though this may seem like an obscure edge case,
it may be common for uses who have prefers-reduced-motion set.

Bug: 476652058
Change-Id: I5e2aeaabe26c845d26c3872168177826f794a3e7
Reviewed-on: https://chromium-review.googlesource.com/7532839
WPT-Export-Revision: aaedf3f7c28f9138084aea527ab19fc5b28a65db

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

CI Results

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

Total 44 tests

Status Summary

Firefox

OK : 38
PASS: 3[GitHub] 74[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 79[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 80[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
FAIL: 22[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 23[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]

Chrome

FAIL: 3

Safari

PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3c5c6b782bbb https://hg.mozilla.org/integration/autoland/rev/901e7d3b0f2a [wpt PR 57995] - Cancel composited animation affecting important property, a=testonly
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
You need to log in before you can comment on or make changes to this bug.