CSS Transition Duration Bug
Reported by
patrickr...@gmail.com,
May 26 2016
|
||||||
Issue descriptionChrome Version : 51.0.2704.63 URLs (if applicable) : http://codepen.io/patrickhill/pen/jrNQyd/?editors=0100 Other browsers tested: Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Safari: OK Firefox: FAIL IE: OK What steps will reproduce the problem? (1) Add a CSS transition and transition-duration to an element (2) Add a longer duration to the :hover state What is the expected result? In past versions of Chrome, the un-hover animation duration was applied from the current animation state. What happens instead? The un-hover animation duration gets applied to the full length of the animation regardless of where the animation is in its timeline. Please provide any additional information below. Attach a screenshot if possible. A working example with more explanation is available here: http://codepen.io/patrickhill/pen/jrNQyd/?editors=0100 I'm also attaching an animated gif.
,
May 27 2016
,
May 27 2016
,
May 27 2016
,
May 27 2016
Please set the M- label to the version that regressed when marking a bug as regression.
,
May 30 2016
Chrome changed its transition reversing to match the spec and Firefox. https://www.w3.org/TR/css3-transitions/#reversing As far as specs and compatibility are concerned Chrome is in the green. Something to note though is the test case uses a different transition-duration for hover vs non-hover. The hover duration is 8s while the non-hover duration is 1s. Perhaps when the transition timing properties change the reverse duration scaling should not apply, this is more of a spec issue than a browser implementation one. I encourage you to raise the issue if you feel CSS transitions should behave differently: https://discourse.wicg.io/ I also encourage you to ping the relevant WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=61419 |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by ssamanoori@chromium.org
, May 27 2016Labels: -Type-Bug M-53 OS-Linux OS-Mac OS-Windows Type-Bug-Regression
Owner: dsansome@chromium.org
Status: Assigned (was: Unconfirmed)