Open
Description
According to the spec, Animation
inherits from EventTarget
. While the polyfilled Animation
exposes add
/removeEventListener
, it is missing dispatchEvent
because it doesn't actually use an EventTarget
as its prototype.
As a workaround, animation._animation.dispatchEvent
seems to work when Animation exists natively (tested in Chromium).