Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / hit-test-with-br.xhtml
blob9461eb7872ffca6609a5b827f9c09de6a3c087c0
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();
12 function repaintTest() {
13 if (window.eventSender) {
14 testRunner.waitUntilDone();
15 eventSender.mouseMoveTo(50, 80);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
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>