mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
LibWeb: Copy the keyframes in KeyframeEffect's copy constructor
This commit is contained in:
parent
5b84bd6e45
commit
b5c682bc2e
Notes:
sideshowbarker
2024-07-17 06:39:26 +09:00
Author: https://github.com/mattco98
Commit: b5c682bc2e
Pull-request: https://github.com/SerenityOS/serenity/pull/24530
3 changed files with 15 additions and 1 deletions
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let effect = new KeyframeEffect(null, [{ marginLeft: "10px" }]);
|
||||
let copiedEffect = new KeyframeEffect(effect);
|
||||
let copiedKeyframes = copiedEffect.getKeyframes();
|
||||
println(`anim count: ${copiedKeyframes.length}`);
|
||||
if (copiedKeyframes.length > 0)
|
||||
println(`keyframe: ${JSON.stringify(copiedKeyframes[0])}`);
|
||||
})
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue