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

Unified Diff: LayoutTests/svg/hittest/svg-root-display-block.html

Issue 318663002: Allow hitting the SVG root when its display-type is 'block' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/hittest/svg-root-display-block-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/hittest/svg-root-display-block.html
diff --git a/LayoutTests/svg/hittest/svg-root-display-block.html b/LayoutTests/svg/hittest/svg-root-display-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..fc08021cc2ebf8daf37d1b7d8acf4f4e9020aac6
--- /dev/null
+++ b/LayoutTests/svg/hittest/svg-root-display-block.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<title>SVG root 'display: block' hit test</title>
+<style>
+html, body {
+ padding: 0;
+ margin: 0;
+}
+svg {
+ display: block;
+ background-color: blue;
+}
+</style>
+<body>
+<svg width="200" height="200"></svg>
+<p>SVG root with 'display: block' gets intersected.</p>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var svgRoot = document.querySelector('svg');
+var result = (svgRoot === document.elementFromPoint(100, 100));
+document.write(result ? 'PASS' : 'FAIL');
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/hittest/svg-root-display-block-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698