[Webkit-unassigned] [Bug 207364] 'transitionend' event fires one event loop after the 'finish'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 7 07:16:39 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=207364

Antoine Quint <graouts at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |graouts at webkit.org

--- Comment #5 from Antoine Quint <graouts at webkit.org> ---
(In reply to Simon Fraser (smfr) from comment #0)
> transitionstart/transitionend events are dispatched via enqueueDOMEvent()
> which adds them to the DeclarativeAnimation's m_eventQueue, which is a
> MainThreadGenericEventQueue which dispatches the events via a zero-delay
> timer.
> 
> Conversely, DocumentTimeline::internalUpdateAnimationsAndSendEvents()
> explicitly dispatches the Web Animations related events (like "finish")
> immediately, as would be expected from
> https://drafts.csswg.org/web-animations/#update-animations-and-send-events
> 
> Is this difference deliberate?

No, it's a bug. We should dispatch all events in DocumentTimeline::internalUpdateAnimationsAndSendEvents(). It's been on my to-do list but didn't seem like a pressing issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200207/fe806c9a/attachment.htm>


More information about the webkit-unassigned mailing list