LibWeb/Animations: Consider CSSTransitions in is_replaceable()

This commit is contained in:
Lucas CHOLLET 2024-12-22 21:19:48 -05:00 committed by Andreas Kling
parent c2165fb6b8
commit 441c1a29ae
Notes: github-actions[bot] 2024-12-25 16:15:23 +00:00

View file

@ -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<CSS::CSSAnimation const*>(this)->owning_element())
if ((is_css_animation() || is_css_transition()) && owning_element())
return false;
// - The animation's play state is finished.