Index: tools/perf/page_sets/perf_week/css-animations-simultaneous-by-inserting-new-element.html |
diff --git a/tools/perf/page_sets/perf_week/css-animations-simultaneous-by-inserting-new-element.html b/tools/perf/page_sets/perf_week/css-animations-simultaneous-by-inserting-new-element.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..036e7069c810ff54a8f7b710240c2a0ca9e06469 |
--- /dev/null |
+++ b/tools/perf/page_sets/perf_week/css-animations-simultaneous-by-inserting-new-element.html |
@@ -0,0 +1,47 @@ |
+<!doctype html> |
+<meta name="viewport" content="width=device-width, user-scalable=no"> |
+<container id="container"></container> |
+<script> |
+window.measurementReady = true; |
+var N = 1000; |
+var duration = 1000; |
+ |
+function startAnimation() { |
+ var target = document.createElement('target'); |
+ container.appendChild(target); |
+} |
+ |
+function startAllAnimations() { |
+ container.textContent = ''; |
+ for (var i = 0; i < N; i++) { |
+ startAnimation(); |
+ } |
+} |
+ |
+startAllAnimations(); |
+setInterval(startAllAnimations, duration); |
+</script> |
+ |
+<style> |
+target { |
+ display: inline-block; |
+ width: 9px; height: 9px; |
+ background: orange; |
+ -webkit-animation: anim1 1s; |
+} |
+@-webkit-keyframes anim1 { |
+ 0% { opacity: 0; } |
+ 100% { opacity: 1; } |
+} |
+body { |
+ margin: 0; |
+ overflow: hidden; |
+} |
+container { |
+ display: flex; |
+ flex-flow: row wrap; |
+ width: 550px; |
+ height: 800px; |
+ background: magenta; |
+} |
+</style> |