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

Side by Side Diff: Source/web/tests/data/touch-action-simple.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: rebase to trunk and Incorporated review comments Created 6 years, 9 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 unified diff | Download patch
« no previous file with comments | « Source/web/tests/TouchActionTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <link rel='stylesheet' type='text/css' href='touch-action-tests.css'> 2 <link rel='stylesheet' type='text/css' href='touch-action-tests.css'>
3 <script src='touch-action-tests.js'></script> 3 <script src='touch-action-tests.js'></script>
4 4
5 <!-- 5 <!--
6 Test a bunch of simple cases where touch-action: none results in a non-fast -scrollable region. 6 Test a bunch of simple cases where touch-action: none results in a non-fast -scrollable region.
7 --> 7 -->
8 8
9 <div expected-action='auto'>Simple div with no explicit touch-action</div> 9 <div expected-action='auto'>Simple div with no explicit touch-action</div>
10 <div class='ta-none' expected-action='none'>Simple div with touch-action: none</ div> 10 <div class='ta-none' expected-action='none'>Simple div with touch-action: none</ div>
11 11
12 <div class='ta-none' style='height: 0; margin-bottom: 50px'> 12 <div class='ta-none' style='height: 0; margin-bottom: 50px'>
13 <div expected-action='none'> 13 <div expected-action='none'>
14 Touch-action: none is propagated to descendants 14 Touch-action: none is propagated to descendants
15 </div> 15 </div>
16 </div> 16 </div>
17 17
18 <div class='ta-none' style='height: 0; margin-bottom: 50px'> 18 <div class='ta-none' style='height: 0; margin-bottom: 50px'>
19 <div class='ta-auto' expected-action='none'> 19 <div class='ta-auto' expected-action='none'>
20 Explicitly setting touch-action: auto does nothing to prevent propagation of none 20 Explicitly setting touch-action: auto does nothing to prevent propagation of none
21 </div> 21 </div>
22 </div> 22 </div>
23 23
24 <div class='ta-none' style='height: 0; margin-bottom: 50px'>
25 <span expected-action='none' style='display:inline-block'>
26 touch-action should be inherited by inline-block elements
27 </span>
28 </div>
29
30 <div class='ta-none' style='height: 0; margin-bottom: 50px'>
31 <span expected-action='none' style='display:table-cell'>
32 touch-action should be inherited by table-cell elements
33 </span>
34 </div>
35
24 <div style='padding: 20px 0'> 36 <div style='padding: 20px 0'>
25 <span class='ta-none' expected-action='auto'>Touch-action should be ignored on inline elements 37 <span class='ta-none' expected-action='auto'>Touch-action should be ignored on inline elements
26 <div expected-action='auto'>And not propagated to any block children</div> 38 <div expected-action='auto'>And not propagated to any block children</div>
27 </span> 39 </span>
28 </div> 40 </div>
29 <p>Below case is broken, should be AUTO - <a href='http://crbug.com/319479'>Bug 319479</a></p> 41
30 <div class='ta-none' style='height: 0; margin-bottom: 100px'> 42 <div class='ta-none' style='height: 0; margin-bottom: 50px'>
31 <span expected-action='none'> 43 <span expected-action='auto'>
32 touch-action should not be inherited by inline elements 44 touch-action should not be inherited by inline elements
33 <div expected-action='none'>But is inherited by any block descendants of the m</div>
34 </span> 45 </span>
35 </div> 46 </div>
47
48 <div class='ta-none' style='height: 0; margin-bottom: 100px'>
49 <span>
50 <div expected-action='none'>touch-action should be inherited by any block de scendants of inline elements</div>
51 </span>
52 </div>
53
54 <div class='ta-none' style='height: 0; margin-bottom: 50px'>
55 <svg expected-action='none' xmlns="http://www.w3.org/2000/svg">
56 touch-action should be inherited by svg root element
57 </svg>
58 </div>
OLDNEW
« no previous file with comments | « Source/web/tests/TouchActionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698