| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <sub id="sub"> |
| 3 </sub> |
| 4 <del id="del"> |
| 5 <i id="italic"></i> |
| 6 </del> |
| 7 <div id="div"></div> |
| 8 <script> |
| 9 text = document.createTextNode('Text'); |
| 10 italic.appendChild(text); |
| 11 |
| 12 shadow = sub.createShadowRoot(); |
| 13 shadow.appendChild(del); |
| 14 |
| 15 // Take the text node out of the document |
| 16 section = document.createElement('div'); |
| 17 section.appendChild(sub); |
| 18 div.appendChild(text); |
| 19 </script> |
| 20 <p>crbug.com/491844 Moving a node from inside a shadow-root to a detached tree s
hould not crash when we hit-test it. Hover over 'Text' to test. </p> |
| 21 <div id="result">Test passes if it does not crash.</div> |
| 22 <script> |
| 23 if (window.testRunner) { |
| 24 testRunner.dumpAsText(); |
| 25 eventSender.mouseMoveTo(10, 10); |
| 26 eventSender.mouseDown(); |
| 27 eventSender.mouseUp(); |
| 28 } |
| 29 </script> |
| OLD | NEW |