diff options
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest/only-children-ref.html')
-rw-r--r-- | testing/talos/talos/tests/perf-reftest/only-children-ref.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest/only-children-ref.html b/testing/talos/talos/tests/perf-reftest/only-children-ref.html new file mode 100644 index 0000000000..60bdf0ffd5 --- /dev/null +++ b/testing/talos/talos/tests/perf-reftest/only-children-ref.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(document.createElement("div")); + document.body.appendChild(root); + flush_style(root); + perf_start(); + root.firstChild.className = "x"; + flush_style(root); + perf_finish(); +}; +</script> +<body></body> |