Index: LayoutTests/svg/custom/click-overflowing-element.html |
diff --git a/LayoutTests/svg/custom/click-overflowing-element.html b/LayoutTests/svg/custom/click-overflowing-element.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c257f3576d8802ba40feaf6491fd6db5f3203f20 |
--- /dev/null |
+++ b/LayoutTests/svg/custom/click-overflowing-element.html |
@@ -0,0 +1,33 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>Click on overflowing svg element</title> |
+ <script type="text/javascript" charset="utf-8"> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ function sendClick() |
+ { |
+ var target = document.getElementById("target"); |
+ var rect = target.getBoundingClientRect(); |
+ |
+ if (window.eventSender) { |
pdr.
2014/08/07 22:51:47
Nit: the indentation of this file is pretty random
|
+ eventSender.mouseMoveTo(rect.left + 10, rect.top + 10); |
+ eventSender.mouseDown(); |
+ eventSender.mouseUp(); |
+ } |
+ } |
+ |
+ window.addEventListener('load', sendClick, false); |
+ </script> |
+ <style> |
+ rect:hover { fill: blue; } |
+ </style> |
+</head> |
+<body> |
+ <svg width="100" height='100' overflow="visible"> |
+ <rect id="target" x="100" width="100" height="100" onclick="document.querySelector('p').textContent='PASS';"/> |
+ </svg> |
+ <p>FAIL</p> |
+</body> |
+</html> |