OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script src="../dom/shadow/resources/shadow-dom.js"></script> |
| 6 <body> |
| 7 <div id="host1"> |
| 8 <template data-mode="open"> |
| 9 <slot name="slot1"></slot> |
| 10 </template> |
| 11 <span slot="slot1" id="span1"></span> |
| 12 <span slot="slot1" id="span2"></span> |
| 13 </div> |
| 14 <script> |
| 15 convertTemplatesToShadowRootsWithin(host1); |
| 16 document.body.offsetLeft; |
| 17 |
| 18 test(() => { |
| 19 assert_equals(document.querySelector('::slotted(span)'), null); |
| 20 assert_equals(host1.shadowRoot.querySelector('::slotted(span)'), null); |
| 21 }, "querySelector for ::slotted pseudo element"); |
| 22 |
| 23 test(() => { |
| 24 assert_equals(document.querySelectorAll('::slotted(span)').length, 0); |
| 25 assert_equals(host1.shadowRoot.querySelectorAll('::slotted(span)').length, 0); |
| 26 }, "querySelectorAll for ::slotted pseudo element"); |
| 27 </script> |
| 28 </body> |
| 29 </html> |
OLD | NEW |