mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 16:42:19 +02:00
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
1.9 KiB
1.9 KiB