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 style='padding: 20px 0'> | 24 <div style='padding: 20px 0'> |
25 <span class='ta-none' expected-action='auto'>Touch-action should be ignored on inline elements | 25 <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> | 26 <div expected-action='auto'>And not propagated to any block children</div> |
27 </span> | 27 </span> |
28 </div> | 28 </div> |
29 <p>Below case is broken, should be AUTO - <a href='http://crbug.com/319479'>Bug 319479</a></p> | 29 <p>Below case is broken, should be AUTO - <a href='http://crbug.com/319479'>Bug 319479</a></p> |
Rick Byers
2014/02/17 14:43:52
Remove this line (no longer a bug here).
| |
30 <div class='ta-none' style='height: 0; margin-bottom: 100px'> | 30 <div class='ta-none' style='height: 0; margin-bottom: 100px'> |
Rick Byers
2014/02/17 14:43:52
We should add a similar test case for SVG (and pro
| |
31 <span expected-action='none'> | 31 <span expected-action='auto'> |
32 touch-action should not be inherited by inline elements | 32 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> | 33 <div expected-action='none'>But is inherited by any block descendants of the m</div> |
34 </span> | 34 </span> |
35 </div> | 35 </div> |
OLD | NEW |