summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/perf-reftest/display-none-1.html
blob: 00a3cf21eef03a46f513efc335756967a6422c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<style>
.root { display: none; }
.x div { color: blue; }
</style>
<script src="util.js"></script>
<script>
window.onload = function() {
  let root = document.createElement("div");
  root.className = "root";
  root.appendChild(build_dom(100000, "div"));
  document.body.appendChild(root);
  flush_style(root);
  perf_start();
  document.body.className = "x";
  flush_style(root);
  perf_finish();
};
</script>
<body></body>