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

Unified Diff: Source/web/tests/data/touch-action-hittest.html

Issue 137123009: Add hittest mode for Touch-action which ignore inline elements and svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
Index: Source/web/tests/data/touch-action-hittest.html
diff --git a/Source/web/tests/data/touch-action-hittest.html b/Source/web/tests/data/touch-action-hittest.html
new file mode 100755
index 0000000000000000000000000000000000000000..c925526f7a39aa6bab599fa6de23707c8aa7897a
--- /dev/null
+++ b/Source/web/tests/data/touch-action-hittest.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<!--
+ Test a bunch of simple cases for hittest mode TouchAction which ignores inline elements and svg elements.
+-->
+
+<div expected-hittest='0' hittest='0'>Simple div</div>
+<div expected-hittest='1' style='padding: 20px 0'>
+ <span hittest='1'>HitTestRequest::TouchAction should ignore inline elements
+ <div expected-hittest='2' hittest='2'>div nested inside span</div>
+ </span>
+</div>
+
+<div style='padding: 20px 0'>
+ <span style='display: inline-block' expected-hittest='3' hittest='3'>HitTestRequest::TouchAction should not ignore inline block elements
gnana 2014/01/16 14:36:02 This case hittest fails. Need to check if inline-b
Rick Byers 2014/01/17 16:12:46 In IE inline-block DOES respect touch-action, so w
+ </span>
+</div>
+
+<svg expected-hittest='4' width="500" xmlns="http://www.w3.org/2000/svg">
+ <g>
+ <rect hittest='4' x="0" y="0" width="500" height="50" fill= "blue"/>
+ <text fill="white" text-anchor="middle" y="30" x="250">
+ HitTestRequest::TouchAction should ignore svg elements
+ </text>
+ </g>
+</svg>
« Source/web/tests/TouchActionTest.cpp ('K') | « Source/web/tests/TouchActionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698