Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Side by Side Diff: tools/perf/page_sets/perf_week/css-transitions-simultaneous-by-updating-class.html

Issue 402433004: Test adding perf week tests as smoothness benchmark (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: g cl issue Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <meta name="viewport" content="width=device-width, user-scalable=no">
3 <container id="container"></container>
4 <script>
5 var N = 1000;
6 var duration = 1000;
7 var keyframe = 1;
8 var targets = [];
9
10 for (var i = 0; i < N; i++) {
11 var target = document.createElement('target');
12 container.appendChild(target);
13 targets.push(target);
14 }
15
16 function startAllAnimations() {
17 keyframe ^= 1;
18 targets.forEach(function(target) {
19 target.className = 'keyframe' + keyframe;
20 });
21 }
22
23 requestAnimationFrame(startAllAnimations);
24 setInterval(startAllAnimations, duration);
25
26 requestAnimationFrame(function() {
27 window.measurementReady = true;
28 });
29 </script>
30
31 <style>
32 body {
33 margin: 0;
34 overflow: hidden;
35 }
36 container {
37 display: flex;
38 flex-flow: row wrap;
39 width: 550px;
40 height: 800px;
41 background: lightgoldenrodyellow;
42 }
43 target {
44 display: inline-block;
45 width: 9px; height: 9px;
46 background: magenta;
47 transition: opacity 1000ms linear;
48 }
49 .keyframe0 {
50 opacity: 0;
51 }
52 .keyframe1 {
53 opacity: 1;
54 }
55 </style>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698