Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / SelectorAPI / loose-subtree-nth.html
blobcda7c1da73dc9a2a9f68e8e60806bc2b8e385c7f
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4 description("Element.querySelector matching nth-child of loose subtree.");
6 var root = document.createElement("div");
7 for (var i = 0; i < 12; i++) {
8 var child = document.createElement("span");
9 if (i == 11)
10 child.id = "pass";
11 root.appendChild(child);
14 shouldBe('root.querySelector(":nth-child(12)").id', '"pass"');
15 </script>