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> |