LibWeb/DOM: Don't assume that Animations have an associated effect

Fixes a crash on:
 - css/css-transitions/CSSTransition-effect.tentative.html
This commit is contained in:
Lucas CHOLLET 2024-12-27 22:31:47 -05:00 committed by Andreas Kling
commit 9585aeafda
Notes: github-actions[bot] 2024-12-28 10:51:37 +00:00
4 changed files with 586 additions and 0 deletions

View file

@ -0,0 +1,16 @@
Harness status: OK
Found 10 tests
5 Pass
5 Fail
Pass After setting a transition's effect to null, it still reports the original transition property
Pass After setting a transition's effect to null, it becomes finished
Fail After setting a transition's effect to null, style is updated
Fail After setting a transition's effect to null, a new transition can be started
Fail After setting a transition's effect to null, it should be possible to interrupt that transition
Pass After setting a new keyframe effect with a shorter duration, the transition becomes finished
Pass After setting a new keyframe effect targeting different properties, the transition continues to report the original transition property
Fail After setting a new keyframe effect on a play-pending transition, the transition remains pending
Pass A transition with no effect still returns the original transitionProperty
Fail A transition with a replaced effect still exhibits the regular transition reversing behavior