From 441c1a29aee2bdf9b547e0f410f1e6c30b8df6ca Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sun, 22 Dec 2024 21:19:48 -0500 Subject: [PATCH] LibWeb/Animations: Consider CSSTransitions in `is_replaceable()` --- Libraries/LibWeb/Animations/Animation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/LibWeb/Animations/Animation.cpp b/Libraries/LibWeb/Animations/Animation.cpp index 02f77308526..9f2a3d5b657 100644 --- a/Libraries/LibWeb/Animations/Animation.cpp +++ b/Libraries/LibWeb/Animations/Animation.cpp @@ -324,8 +324,7 @@ bool Animation::is_replaceable() const // - The existence of the animation is not prescribed by markup. That is, it is not a CSS animation with an owning // element, nor a CSS transition with an owning element. - // FIXME: Check for transitions - if (is_css_animation() && static_cast(this)->owning_element()) + if ((is_css_animation() || is_css_transition()) && owning_element()) return false; // - The animation's play state is finished.