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

Unified 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: fix nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/custom/click-overflowing-element-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..68a6e050b20f8d8dbb07c06124605aa4a3a20b30
--- /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) {
+ 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>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/click-overflowing-element-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698