Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / custom / hit-test-with-br.xhtml
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
3   <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 <title>&lt;br&gt; prevents click handler from firing</title>
5 <script>
6 function clickHandler(evt) {
7     evt.target.style.fill = "green";
8     if (window.testRunner)
9         testRunner.notifyDone();
10 }
11
12 function repaintTest() {
13     if (window.eventSender) {
14         testRunner.waitUntilDone();
15         eventSender.mouseMoveTo(50, 80);
16         eventSender.mouseDown();
17         eventSender.mouseUp();
18     }
19 }
20 </script>
21   </head>
22   <body onload="runRepaintAndPixelTest()">
23     <p>
24     A test for hit testing when an svg container is relatively positioned in
25     a containing block. See bug 13981.
26     </p>
27     <br />
28     <svg xmlns="http://www.w3.org/2000/svg" width="720" height="15">
29       <rect width="720" height="15" onclick="clickHandler(evt)" />
30     </svg>
31   </body>
32 </html>