Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / svg / custom / inner-svg-hit-test.svg
blobf6f16ea4166eb72175611aff862c8c97235fc12a
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <rect id="rect" width="100" height="100" fill="red" />
3 <svg onclick="hit()">
4 </svg>
5 <script>
6 <![CDATA[
7 var hitDetected = 0;
8 function hit() {
9 hitDetected = 1;
12 if (window.eventSender) {
13 eventSender.mouseMoveTo(200, 200);
14 eventSender.mouseDown();
15 eventSender.mouseUp();
17 if (hitDetected == 0) {
18 document.getElementById('rect').style.fill = 'green';
21 ]]>
22 </script>
23 </svg>