Index: tools/perf/page_sets/perf_week/css-animations-simultaneous-by-updating-inline-style.html |
diff --git a/tools/perf/page_sets/perf_week/css-animations-simultaneous-by-updating-inline-style.html b/tools/perf/page_sets/perf_week/css-animations-simultaneous-by-updating-inline-style.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d55b884521445a994ea01497afa7a66294ae90ed |
--- /dev/null |
+++ b/tools/perf/page_sets/perf_week/css-animations-simultaneous-by-updating-inline-style.html |
@@ -0,0 +1,52 @@ |
+<!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; |
+ |
+for (var i = 0; i < N; i++) { |
+ var target = document.createElement('target'); |
+ container.appendChild(target); |
+} |
+ |
+var anim = 0; |
+function startAllAnimations() { |
+ anim++; |
+ for (var i = 0; i < container.childNodes.length; i++) { |
+ container.childNodes[i].style.webkitAnimationName = 'anim' + (1 + (i + anim) % 2); |
+ } |
+} |
+ |
+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; } |
+} |
+@-webkit-keyframes anim2 { |
+ 0% { opacity: 1; } |
+ 100% { opacity: 0; } |
+} |
+body { |
+ margin: 0; |
+ overflow: hidden; |
+} |
+container { |
+ display: flex; |
+ flex-flow: row wrap; |
+ width: 550px; |
+ height: 800px; |
+ background: magenta; |
+} |
+</style> |