Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / click-overflowing-element.html
blob68a6e050b20f8d8dbb07c06124605aa4a3a20b30
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Click on overflowing svg element</title>
5 <script type="text/javascript" charset="utf-8">
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 function sendClick()
11 var target = document.getElementById("target");
12 var rect = target.getBoundingClientRect();
14 if (window.eventSender) {
15 eventSender.mouseMoveTo(rect.left + 10, rect.top + 10);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
21 window.addEventListener('load', sendClick, false);
22 </script>
23 <style>
24 rect:hover { fill: blue; }
25 </style>
26 </head>
27 <body>
28 <svg width="100" height='100' overflow="visible">
29 <rect id="target" x="100" width="100" height="100" onclick="document.querySelector('p').textContent='PASS';"/>
30 </svg>
31 <p>FAIL</p>
32 </body>
33 </html>