Chromium Code Reviews| 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> |