mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Copy the keyframes in KeyframeEffect's copy constructor
This commit is contained in:
committed by
Andreas Kling
parent
5b84bd6e45
commit
b5c682bc2e
Notes:
sideshowbarker
2024-07-17 06:39:26 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/b5c682bc2e Pull-request: https://github.com/SerenityOS/serenity/pull/24530
@@ -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>
|
||||
Reference in New Issue
Block a user