This method doesn't directly throw exceptions; however, if the animation's
playState is anything but
"idle" when cancelled, the current finished promise is rejected with a
The definition of 'Animation.cancel()' in that specification.
|Working Draft||Editor's draft.|
|Feature||Android webview||Chrome for Android||Edge mobile||Firefox for Android||Opera Android||iOS Safari||Samsung Internet|
40 — 481
1. From version 40 until version 48 (exclusive): this feature is behind the
dom.animations-api.core.enabled preference (needs to be set to
true). To change preferences in Firefox, visit about:config.