Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / SelectorAPI / only-shadow-host-in-shadow-tree.html
blobc1040cd849949b167ff95664c706e26866dbcf87
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="../shadow/resources/shadow-dom.js"></script>
6 </head>
7 <body>
8 <div id="sandbox"></div>
9 <pre id="console"></pre>
10 </body>
11 <script>
12 description("crbug.com/359854: test for traversing elements in shadow tree.");
14 document.getElementById("sandbox").appendChild(
15 createDOM("div", {"id": "host"},
16 createShadowRoot(
17 createDOM("div", {"id": "host2"},
18 createShadowRoot(
19 createDOM("div", {})))),
20 createDOM("div", {"id": "target"})));
22 shouldBe("document.querySelector('body /deep/ #target').id", '"target"');
23 </script>
24 </html>