blob: 5e6937f2eb3cbdccfd5ccefca0c191d26ca3d02b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!DOCTYPE html>
<style>
.x > div, .x > span { background-color: yellow; }
</style>
<script src="util.js"></script>
<script>
window.onload = function() {
let root = document.createElement("div");
root.appendChild(build_dom(100000, "div"));
document.body.appendChild(root);
flush_style(root);
perf_start();
root.className = "x";
flush_style(root);
perf_finish();
};
</script>
<body></body>
|