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

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: esprehn CR tweaks Created 7 years 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
« no previous file with comments | « Source/web/tests/data/touch-action-shadow-dom.html ('k') | Source/web/tests/data/touch-action-tests.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6219b147008ad7de17dff79be53457787c23a809
--- /dev/null
+++ b/Source/web/tests/data/touch-action-simple.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<link rel='stylesheet' type='text/css' href='touch-action-tests.css'>
+<script src='touch-action-tests.js'></script>
+
+<!--
+ 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>
« no previous file with comments | « Source/web/tests/data/touch-action-shadow-dom.html ('k') | Source/web/tests/data/touch-action-tests.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698