summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/perf-reftest-singletons/style-attr-1.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest-singletons/style-attr-1.html')
-rw-r--r--testing/talos/talos/tests/perf-reftest-singletons/style-attr-1.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest-singletons/style-attr-1.html b/testing/talos/talos/tests/perf-reftest-singletons/style-attr-1.html
new file mode 100644
index 0000000000..c5c7b83f1d
--- /dev/null
+++ b/testing/talos/talos/tests/perf-reftest-singletons/style-attr-1.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="util.js"></script>
+<script>
+window.onload = function() {
+ document.head.appendChild(build_rule(".x[y~='e500']", 100000, "{ color: blue; }"));
+ var div = document.createElement("div");
+ div.className = "x";
+ let val = "";
+ for (let i = 0; i < 1000; i++) {
+ val += "e" + i + " ";
+ }
+ div.setAttribute("y", val);
+ document.body.appendChild(div);
+ flush_style(div);
+ perf_start();
+ div.style.color = "green";
+ flush_style(div);
+ perf_finish();
+};
+</script>
+<body></body>