Open
Description
The finished
Promise resolves as expected after the initial play with Element.animate()
. However, it fails to resolve on finishes for subsequent animation.play()
calls.
The behavior I am seeing is the Promise does eventually resolve... if you change playState
after the animation finishes.
For a demo (with comparisons to onfinish
which behaves as expected): http://codepen.io/danwilson/pen/ZQwWKz
Firefox Nightly appears to have the expected behavior implemented (but the polyfill overwrites it). So for an example of what I think the proper behavior is, try the following in the latest Firefox Nightly (and no polyfill): http://codepen.io/danwilson/pen/xZMKGZ