| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 |
| 3 <script src="../../../resources/js-test.js"></script> |
| 4 |
| 5 <div id="host"> |
| 6 <span class="first"></span> |
| 7 <span class="second"></span> |
| 8 </div> |
| 9 |
| 10 <script> |
| 11 description("Test the :not pseudo selector in <content select>"); |
| 12 |
| 13 var host = document.getElementById("host"); |
| 14 var root = host.createShadowRoot(); |
| 15 var content = document.createElement("content"); |
| 16 root.appendChild(content); |
| 17 |
| 18 content.select = ":not(.first)"; |
| 19 shouldBe("content.getDistributedNodes().length", "1"); |
| 20 shouldBeEqualToString("content.getDistributedNodes()[0].className", "second"); |
| 21 |
| 22 content.select = ":not(.second)"; |
| 23 shouldBe("content.getDistributedNodes().length", "1"); |
| 24 shouldBeEqualToString("content.getDistributedNodes()[0].className", "first"); |
| 25 </script> |
| OLD | NEW |