Chromium Code Reviews| Index: Source/web/tests/data/touch-action-simple.html |
| diff --git a/Source/web/tests/data/touch-action-simple.html b/Source/web/tests/data/touch-action-simple.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b7d922b675ca0cb4e6ab184c0626ba3eab38c87e |
| --- /dev/null |
| +++ b/Source/web/tests/data/touch-action-simple.html |
| @@ -0,0 +1,42 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <link rel="stylesheet" type="text/css" href="touch-action-tests.css"/> |
|
esprehn
2013/11/21 16:26:29
leave off /
Rick Byers
2013/11/21 22:09:29
Done.
|
| + <script src=touch-action-tests.js></script> |
| +</head> |
| +<body> |
|
esprehn
2013/11/21 16:26:29
same comments as the other test
Rick Byers
2013/11/21 22:09:29
Done.
|
| + |
| +<!-- |
| + Test a bunch of simple cases where touch-action: none results in a non-fast-scrollable region. |
| +--> |
| + |
| + <div expected-action='auto'>Simple div with no explicit touch-action</div> |
| + <div class='ta-none' expected-action='none'>Simple div with touch-action: none</div> |
| + |
| + <div class='ta-none' style='height: 0; margin-bottom: 50px'> |
| + <div expected-action='none'> |
| + Touch-action: none is propagated to descendants |
| + </div> |
| + </div> |
| + |
| + <div class='ta-none' style='height: 0; margin-bottom: 50px'> |
| + <div class='ta-auto' expected-action='none'> |
| + Explicitly setting touch-action: auto does nothing to prevent propagation of none |
| + </div> |
| + </div> |
| + |
| + <div style='padding: 20px 0'> |
| + <span class='ta-none' expected-action='auto'>Touch-action should be ignored on inline elements |
| + <div expected-action='auto'>And not propagated to any block children</div> |
| + </span> |
| + </div> |
| + <p>Below case is broken, should be AUTO - <a href=http://crbug.com/319479>Bug 319479</a></p> |
| + <div class='ta-none' style='height: 0; margin-bottom: 100px'> |
| + <span expected-action='none'> |
| + touch-action should not be inherited by inline elements |
| + <div expected-action='none'>But is inherited by any block descendants of them</div> |
| + </span> |
| + </div> |
| +</body> |
| +</html> |
| + |