Paused animation is unexpectedly started when the timing function is step-start.
Reported by
j4ja...@gmail.com,
May 2 2016
|
||
Issue descriptionChrome Version : 52.0.2716.0 (Official Build) dev-m (64-bit) URLs (if applicable) : https://jsfiddle.net/83888h9u/ Other browsers tested: Firefox: OK (45.0.2) IE: OK (11.212.10586.0) MS Edge: OK (EdgeHTML 13.10586) All browsers were tested on Windows 10 Pro (Version 1511 Build 10586.218). What steps will reproduce the problem? (1) Create an animation with the animation-play-state set to paused. (2) Set the animation-timing-function to step-start. (3) Create a 'to' keyframe which alters some property value (e.g. setting the text color). What is the expected result? The 'to' keyframe shouldn't take effect, since the animation isn't running (in the given example, the color should remain blue). What happens instead? The 'to' keyframe does take effect, and the property is changed (in the given example, the color changes to red). Example html: <div class="blue-red">This should be blue.</div> <style> .blue-red { color:blue; animation-name:color-red; animation-play-state:paused; animation-duration:1s; animation-timing-function:step-start; } @keyframes color-red { to { color:red; } } </style>
,
May 3 2016
The change https://codereview.chromium.org/1004623010 just enables unprefixed CSS animation properties, prior to that change they were ignored and no animation was started. This is a non regression issue. The animation is in this example is paused yet active. The step-start timing function gives you 100% at 0% progress which is why you see the end frame for the beginning of the animation. https://www.w3.org/TR/css3-transitions/#transition-timing-function-property Other browsers are assuming that all timing functions are 0% at 0% progress which is not the case for step(x, start) timing functions. Alternate test case: https://jsfiddle.net/fj5buqs7/ Chrome and Firefox Nightly passes this test.
,
May 3 2016
@alancutter: Thanks for the quick turnaround. Thank you! |
||
►
Sign in to add a comment |
||
Comment 1 by ashej...@chromium.org
, May 3 2016Components: Blink>Animation
Labels: -Type-Bug -Pri-3 hasbisect M-52 OS-All Pri-1 Type-Bug-Regression
Owner: alancutter@chromium.org
Status: Assigned (was: Unconfirmed)