| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <p>elementFromPoint should not enter infinite loop.</p> | |
| <pre id='console'></pre> | |
| <div id="status"></div> | |
| <svg id="svg" width="600" height="400" xmlns="http://www.w3.org/2000/svg" version="1.0"> | |
| <defs> | |
| <circle id="circle" cx="100" cy="75" r="40" fill="#feae00" stroke="#f31900" stroke-width="15" pointer-events="all"/> | |
| </defs> | |
| <use xlink:href="#circle" x="0" y="0"></use> | |
| </svg> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| document.elementFromPoint(100, 100); | |
| document.getElementById('console').innerHTML = "PASS"; | |
| </script> | |
| </body> | |
| </html> |