OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>SVG root 'display: block' hit test</title> |
| 3 <style> |
| 4 html, body { |
| 5 padding: 0; |
| 6 margin: 0; |
| 7 } |
| 8 svg { |
| 9 display: block; |
| 10 background-color: blue; |
| 11 } |
| 12 </style> |
| 13 <body> |
| 14 <svg width="200" height="200"></svg> |
| 15 <p>SVG root with 'display: block' gets intersected.</p> |
| 16 <script> |
| 17 if (window.testRunner) |
| 18 testRunner.dumpAsText(); |
| 19 |
| 20 var svgRoot = document.querySelector('svg'); |
| 21 var result = (svgRoot === document.elementFromPoint(100, 100)); |
| 22 document.write(result ? 'PASS' : 'FAIL'); |
| 23 </script> |
OLD | NEW |