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

Unified Diff: Source/web/tests/data/touch-action-simple.html

Issue 16507017: Initial touch-action main thread implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't add delay param to public API just yet Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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"/>
+ <script src=touch-action-tests.js></script>
+</head>
+<body>
+
+<!--
+ 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>
+

Powered by Google App Engine
This is Rietveld 408576698