summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/perf-reftest-singletons/only-children-1.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest-singletons/only-children-1.html')
-rw-r--r--testing/talos/talos/tests/perf-reftest-singletons/only-children-1.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest-singletons/only-children-1.html b/testing/talos/talos/tests/perf-reftest-singletons/only-children-1.html
new file mode 100644
index 0000000000..5e6937f2eb
--- /dev/null
+++ b/testing/talos/talos/tests/perf-reftest-singletons/only-children-1.html
@@ -0,0 +1,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>