Files
ladybird/Libraries/LibWeb/Internals/InternalAnimationTimeline.cpp
Adam Colvin 7814b49785 LibWeb: Improve InternalAnimationTimeline Updates
When tests manually set the timeline's time via setTime(), also call
animation->update() for all associated animations. This ensures the
animation's finished state is processed immediately, eliminating a
race condition where style recalculation could call pause() on a
finished animation before its finish event was dispatched.

This mirrors what the event loop does for DocumentTimeline in
Document::update_animations_and_send_events().

Fixes flaky test:
WebAnimations/misc/animation-single-iteration-no-repeat.html
2026-01-11 11:54:18 +01:00

1.9 KiB