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

Side by Side Diff: tools/perf/page_sets/jitter_test_cases/child_jitter_with_parent.html

Issue 2873453005: Remove jitter page set (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!-- saved from url=(0048)http://fiddle.jshell.net/bt8dhkrn/10/show/light/ -->
3 <!-- here we have two divs that jitter together -->
4
5 <style>
6 #jitter-parent {
7 width: 100px;
8 height: 100px;
9 background: papayawhip;
10 border: 1px solid black;
11 will-change: transform;
12 }
13
14 #jitter-child {
15 width: 50px;
16 height: 50px;
17 background: green;
18 border: 1px solid black;
19 will-change: transform;
20 }
21
22 #scrolled {
23 width: 100px;
24 height: 100px;
25 background: red;
26 border: 1px solid black;
27 will-change: transform;
28 }
29
30 body {
31 height: 2500px;
32 }
33 </style>
34
35 <script>
36 window.onload=function(){
37 tick = function(timestamp) {
38 document.getElementById("jitter-parent").style.transform = "translate(0px, " + document.body.scrollTop + "px)";
39 window.requestAnimationFrame(tick);
40 }
41 window.requestAnimationFrame(tick);
42
43 jank = function(timestamp) {
44 for (var i = 0; i < 10; ++i) {
45 Date.now();
46 }
47 window.setTimeout(jank, 50);
48 }
49 window.setTimeout(jank, 50);
50 }
51 </script>
52
53 <div id="jitter-parent" style="transform: translate(0px, 0px);">
54 <div id="jitter-child"></div>
55 </div>
56 <div id="scrolled"></div>
57 </html>
OLDNEW
« no previous file with comments | « tools/perf/page_sets/jitter_test_cases/big_layer_jitter.html ('k') | tools/perf/page_sets/jitter_test_cases/fixed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698