diff options
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest-singletons/abspos-reflow-1.html')
-rw-r--r-- | testing/talos/talos/tests/perf-reftest-singletons/abspos-reflow-1.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest-singletons/abspos-reflow-1.html b/testing/talos/talos/tests/perf-reftest-singletons/abspos-reflow-1.html new file mode 100644 index 0000000000..9e13ca9b4d --- /dev/null +++ b/testing/talos/talos/tests/perf-reftest-singletons/abspos-reflow-1.html @@ -0,0 +1,26 @@ +<!doctype html> +<script src="util.js"></script> +<script> +window.onload = function() { + const dom = build_dom(5000, "div", { + attributes: { + style: "position: absolute; left: 0px; top: 0px;", + }, + }); + + document.body.appendChild(dom); + flush_layout(); + + perf_start(); + for (const element of dom.querySelectorAll("*")) { + if (!element.childElementCount) { + flush_layout(element); + element.style.left = "auto"; + } + } + flush_layout(); + perf_finish(); +}; +</script> +<body> +</body> |