summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/perf-reftest/stop-cascade-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest/stop-cascade-ref.html')
-rw-r--r--testing/talos/talos/tests/perf-reftest/stop-cascade-ref.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest/stop-cascade-ref.html b/testing/talos/talos/tests/perf-reftest/stop-cascade-ref.html
new file mode 100644
index 0000000000..5d6906c97f
--- /dev/null
+++ b/testing/talos/talos/tests/perf-reftest/stop-cascade-ref.html
@@ -0,0 +1,25 @@
+<!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");
+ 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>