Index: tools/perf/page_sets/perf_week/web-animations-staggered-infinite-iterations.html |
diff --git a/tools/perf/page_sets/perf_week/web-animations-staggered-infinite-iterations.html b/tools/perf/page_sets/perf_week/web-animations-staggered-infinite-iterations.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..30f73ee631e7f7b66b87afd754feca68e5467d70 |
--- /dev/null |
+++ b/tools/perf/page_sets/perf_week/web-animations-staggered-infinite-iterations.html |
@@ -0,0 +1,48 @@ |
+<!doctype html> |
+<meta name="viewport" content="width=device-width, user-scalable=no"> |
+<script src="resources/web-animations-api-check.js"></script> |
+<container id="container"></container> |
+<script> |
+var N = 1000; |
+var duration = 1000; |
+ |
+function startAnimation(element, delay) { |
+ target.animate([ |
+ {opacity: 0}, |
+ {opacity: 1}, |
+ ], { |
+ duration: duration, |
+ iterations: Infinity, |
+ delay: delay, |
+ }); |
+} |
+ |
+for (var i = 0; i < N; i++) { |
+ var target = document.createElement('target'); |
+ container.appendChild(target); |
+ startAnimation(target, -i * (duration / N)); |
+} |
+ |
+requestAnimationFrame(function() { |
+ window.measurementReady = true; |
+}); |
+</script> |
+ |
+<style> |
+target { |
+ display: inline-block; |
+ width: 9px; height: 9px; |
+ background: orange; |
+} |
+body { |
+ margin: 0; |
+ overflow: hidden; |
+} |
+container { |
+ display: flex; |
+ flex-flow: row wrap; |
+ width: 550px; |
+ height: 800px; |
+ background: magenta; |
+} |
+</style> |