Bug 1622408 [wpt PR 22244] - Restore the event delegate for a CSSTransition after...
commita5b588b8d1484ef883714d401986601b0f5299ec
authorKevin Ellis <kevers@chromium.org>
Wed, 18 Mar 2020 11:25:30 +0000 (18 11:25 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 19 Mar 2020 17:33:01 +0000 (19 17:33 +0000)
tree186f30c59377d43362f632b6cce60a56b890f3d4
parent3c0b9a5c67eff2b3839e6be656e9af699a3d64ee
Bug 1622408 [wpt PR 22244] - Restore the event delegate for a CSSTransition after a call to animation.effect, a=testonly

Automatic update from web-platform-tests
Restore the event delegate for a CSSTransition after a call to
animation.effect

Transition events were dropped after a call to animation.effect.
CSSTransitions uses an event delegate to dispatch events as a result
of changes to the timing phase.  The event delegate was getting
dropped when the effect changed. A special case is when effect is set
to null. In this case, we need to dispatch a transitioncancel prior
to losing the old event delegate.

Bug: 1059936
Change-Id: I9eda3484fb0c9de08e8398e1975031d6a1f58940
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2103034
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#750775}

--

wpt-commits: aec90f887d3735147cdb8e03a1b2fe1163dde62f
wpt-pr: 22244
testing/web-platform/tests/css/css-transitions/event-dispatch.tentative.html