-
Notifications
You must be signed in to change notification settings - Fork 41
/
touch-action-simple.html
58 lines (48 loc) · 1.93 KB
/
touch-action-simple.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!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 class='ta-none' style='height: 0; margin-bottom: 50px'>
<span expected-action='none' style='display:inline-block'>
touch-action should be inherited by inline-block elements
</span>
</div>
<div class='ta-none' style='height: 0; margin-bottom: 50px'>
<span expected-action='none' style='display:table-cell'>
touch-action should be inherited by table-cell elements
</span>
</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>
<div class='ta-none' style='height: 0; margin-bottom: 50px'>
<span expected-action='auto'>
touch-action should not be inherited by inline elements
</span>
</div>
<div class='ta-none' style='height: 0; margin-bottom: 100px'>
<span>
<div expected-action='none'>touch-action should be inherited by any block descendants of inline elements</div>
</span>
</div>
<div class='ta-none' style='height: 0; margin-bottom: 50px'>
<svg expected-action='none' xmlns="http://www.w3.org/2000/svg">
touch-action should be inherited by svg root element
</svg>
</div>