mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
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:
parent
7bd62809a9
commit
2bd8093449
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/mattco98
Commit: 2bd8093449
Pull-request: https://github.com/SerenityOS/serenity/pull/24474
5 changed files with 8 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue