Index: tools/perf/page_sets/perf_week/web-animations-simultaneous.html |
diff --git a/tools/perf/page_sets/perf_week/web-animations-simultaneous.html b/tools/perf/page_sets/perf_week/web-animations-simultaneous.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7fe3216f5c0aa7633480c5473be0d461bb2dfa3d |
--- /dev/null |
+++ b/tools/perf/page_sets/perf_week/web-animations-simultaneous.html |
@@ -0,0 +1,53 @@ |
+<!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; |
+var targets = []; |
+ |
+function startAnimation(element) { |
+ element.animate([ |
+ {opacity: 0}, |
+ {opacity: 1}, |
+ ], duration); |
+} |
+ |
+function startAllAnimations() { |
+ for (var i in targets) |
+ startAnimation(targets[i]); |
+ setTimeout(startAllAnimations, duration); |
+} |
+ |
+for (var i = 0; i < N; i++) { |
+ var target = document.createElement('target'); |
+ container.appendChild(target); |
+ targets.push(target); |
+} |
+ |
+startAllAnimations(); |
+ |
+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> |