LibWeb: Update style before getting animation play state

Pending style updates can influence this value
This commit is contained in:
Callum Law
2025-10-31 01:14:05 +13:00
committed by Alexander Kalenik
parent a95cde3660
commit fbcef936a9
Notes: github-actions[bot] 2025-11-02 22:55:11 +00:00
7 changed files with 286 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
Harness status: OK
Found 9 tests
4 Pass
5 Fail
Fail Animated style is cleared after canceling a running CSS animation
Fail Animated style is cleared after canceling a filling CSS animation
Pass After canceling an animation, it can still be seeked
Fail After canceling an animation, it can still be re-used
Fail After canceling an animation, updating animation properties doesn't make it live again
Fail After canceling an animation, updating animation-play-state doesn't make it live again
Pass Setting animation-name to 'none' cancels the animation
Pass Setting display:none on an element cancel its animations
Pass Setting display:none on an ancestor element cancels animations on descendants

View File

@@ -0,0 +1,10 @@
Harness status: OK
Found 5 tests
5 Pass
Pass A new CSS animation is initially play-pending
Pass Animation returns correct playState when paused
Pass Animation.playState updates when paused by script
Pass Animation.playState updates when resumed by setting style
Pass Animation returns correct playState when canceled