mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibWeb/Animations: Consider CSSTransitions in is_replaceable()
This commit is contained in:
parent
c2165fb6b8
commit
441c1a29ae
Notes:
github-actions[bot]
2024-12-25 16:15:23 +00:00
Author: https://github.com/LucasChollet Commit: https://github.com/LadybirdBrowser/ladybird/commit/441c1a29aee Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3024
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue