Avoid infinitely looping CSS transitions.

This commit is contained in:
Josh Matthews 2020-03-31 12:13:56 -04:00
parent 236762880c
commit 2bb6ab4567
6 changed files with 61 additions and 20 deletions

View file

@ -607,7 +607,12 @@ trait PrivateMatchMethods: TElement {
// Finish any expired transitions.
let this_opaque = self.as_node().opaque();
animation::complete_expired_transitions(this_opaque, style, context);
animation::complete_expired_transitions(
this_opaque,
style,
context,
possibly_expired_animations,
);
// Merge any running animations into the current style, and cancel them.
let had_running_animations = context