OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link rel='stylesheet' type='text/css' href='touch-action-tests.css'> |
| 3 <script src='touch-action-tests.js'></script> |
| 4 |
| 5 <!-- |
| 6 Test a bunch of simple cases where touch-action: none results in a non-fast
-scrollable region. |
| 7 --> |
| 8 |
| 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> |
| 11 |
| 12 <div class='ta-none' style='height: 0; margin-bottom: 50px'> |
| 13 <div expected-action='none'> |
| 14 Touch-action: none is propagated to descendants |
| 15 </div> |
| 16 </div> |
| 17 |
| 18 <div class='ta-none' style='height: 0; margin-bottom: 50px'> |
| 19 <div class='ta-auto' expected-action='none'> |
| 20 Explicitly setting touch-action: auto does nothing to prevent propagation of
none |
| 21 </div> |
| 22 </div> |
| 23 |
| 24 <div style='padding: 20px 0'> |
| 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> |
| 27 </span> |
| 28 </div> |
| 29 <p>Below case is broken, should be AUTO - <a href='http://crbug.com/319479'>Bug
319479</a></p> |
| 30 <div class='ta-none' style='height: 0; margin-bottom: 100px'> |
| 31 <span expected-action='none'> |
| 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> |
| 34 </span> |
| 35 </div> |
OLD | NEW |