summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/perf-reftest/stop-cascade-1.html
blob: 4172c36920ac1125e34748859fbe334590f54fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<style>
.x { background-color: yellow; }
</style>
<script src="util.js"></script>
<script>
window.onload = function() {
  let roots = [];
  for (let i = 0; i < 200; i++) {
    let root = document.createElement("div");
    root.appendChild(build_dom(1024, "div"));
    roots.push(root);
    document.body.appendChild(root);
  }
  flush_style(roots[0]);
  perf_start();
  for (x in ["x", "", "x"]) {
    for (let root of roots) {
      root.className = x;
    }
  }
  flush_style(roots[0]);
  perf_finish();
};
</script>
<body></body>