LibWeb: Detect explicit null timeline given in KeyframeAnimationOptions

We already do this for the timeline argument in the KeyframeEffect
constructor
This commit is contained in:
Matthew Olsson 2024-05-27 07:17:29 -07:00 committed by Andreas Kling
commit 2bd8093449
Notes: sideshowbarker 2024-07-17 07:43:05 +09:00
5 changed files with 8 additions and 7 deletions

View file

@ -8,6 +8,6 @@
println(`Animation's default timeline is the document's timeline: ${animation.timeline === document.timeline}`);
animation = foo.animate({ opacity: [0, 1] }, { timeline: null });
println(`Animation created with null timeline has the document's timeline: ${animation.timeline === document.timeline}`);
println(`Animation created with null timeline has no timeline: ${animation.timeline === null}`);
});
</script>