New issue
Advanced search Search tips

Issue 914456 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

CC treatment of negative playback rate is not compatible with web-animation

Project Member Reported by majidvp@chromium.org, Dec 12

Issue description

In web-animation an animation with negative playbackrate does not start playing from "end" to "begin". The current time simply progresses backwards. So for animation to play from "end" to start one has to explicitly set current time to "end". Example in [2] shows this behavior .

However, in cc when an animation has a negative playback rate, the animation simply behaves as if time goes from "end" to "start". [1] 

AFIACT, web animations with negative playback rate are not currently composited so this does not actually break anything but this difference in behavior prevents us from ever doing so and creates confusion. We should try to fix this as a matter of code health.

[1] https://cs.chromium.org/chromium/src/cc/animation/keyframe_model.cc?type=cs&sq=package:chromium&g=0&l=229
[2] https://jsbin.com/curuyobuco/1/edit?html,css,output
 

Sign in to add a comment