Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: LayoutTests/svg/custom/click-overflowing-element.html

Issue 444223005: [SVG2] Svg elements that overflow the viewport should also be hitdetected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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();
8
9 function sendClick()
10 {
11 var target = document.getElementById("target");
12 var rect = target.getBoundingClientRect();
13
14 if (window.eventSender) {
pdr. 2014/08/07 22:51:47 Nit: the indentation of this file is pretty random
15 eventSender.mouseMoveTo(rect.left + 10, rect.top + 10);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
18 }
19 }
20
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.querySe lector('p').textContent='PASS';"/>
30 </svg>
31 <p>FAIL</p>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698