OLD | NEW |
---|---|
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: 100px'> |
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> | 45 <div expected-action='none'>But is inherited by any block descendants of the m</div> |
34 </span> | 46 </span> |
35 </div> | 47 </div> |
48 | |
49 <svg class='ta-none' xmlns="http://www.w3.org/2000/svg"> | |
50 <circle expected-action='auto' r="50"/> | |
51 </svg> | |
gnana
2014/02/24 18:59:50
while running unit test, it crashes for SVG while
Rick Byers
2014/02/25 22:52:03
Oh, looks like I should have had an ASSERT_GT inst
gnana
2014/02/27 13:26:59
Added test for svg root alone.
Done.
| |
OLD | NEW |