diff --git a/Userland/Libraries/LibWeb/Animations/Animation.cpp b/Userland/Libraries/LibWeb/Animations/Animation.cpp index 0d47a72b2f..1c5adc7dbe 100644 --- a/Userland/Libraries/LibWeb/Animations/Animation.cpp +++ b/Userland/Libraries/LibWeb/Animations/Animation.cpp @@ -591,6 +591,12 @@ void Animation::update_finished_state(DidSeek did_seek, SynchronouslyNotify sync m_current_finished_promise = WebIDL::create_promise(realm()); m_current_finished_promise_resolved = false; } + + // Invalidate the style of our target element, if applicable + if (m_effect) { + if (auto target = m_effect->target()) + target->invalidate_style(); + } } JS::NonnullGCPtr Animation::current_ready_promise() const