mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
From https://html.spec.whatwg.org/#list-of-animation-frame-callbacks: Each target object has a map of animation frame callbacks, which is an ordered map that must be initially empty, and an animation frame callback identifier, which is a number that must initially be zero.
15 lines
363 B
HTML
15 lines
363 B
HTML
<!DOCTYPE html>
|
|
<div id="foo"></div>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
for (let i = 0; i < 20; i++) {
|
|
// FIXME: Workaround for https://github.com/SerenityOS/serenity/issues/23552
|
|
let x = i;
|
|
requestAnimationFrame(() => {
|
|
println(x);
|
|
});
|
|
}
|
|
});
|
|
</script>
|