chromium/third_party/blink/renderer/core/animation/test_data/raf-countdown.html

<!DOCTYPE html>
<script>
function runRaf(countdown) {
  countdown--;
  if (countdown > 0)
    requestAnimationFrame(function() { runRaf(countdown); });
}
requestAnimationFrame(function() { runRaf(5); });
requestAnimationFrame(function() { runRaf(10); });
</script>