File: touch-action-simple.html

package info (click to toggle)
chromium-browser 41.0.2272.118-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,189,132 kB
  • sloc: cpp: 9,691,462; ansic: 3,341,451; python: 712,689; asm: 518,779; xml: 208,926; java: 169,820; sh: 119,353; perl: 68,907; makefile: 28,311; yacc: 13,305; objc: 11,385; tcl: 3,186; cs: 2,225; sql: 2,217; lex: 2,215; lisp: 1,349; pascal: 1,256; awk: 407; ruby: 155; sed: 53; php: 14; exp: 11
file content (83 lines) | stat: -rw-r--r-- 2,814 bytes parent folder | download | duplicates (3)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!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: 100px'>
  <span expected-action='none'>
    touch-action should be inherited by inline elements.<br>Note this is different than IE (http://crbug.com/380203)
  </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>

<svg class='ta-none' expected-action='none' style="height: 50px" xmlns="http://www.w3.org/2000/svg">
  touch-action should be inherited by svg root element
</svg>

<div class='ta-none' style='height: 0; margin-bottom: 50px'>
  <svg expected-action='none' xmlns="http://www.w3.org/2000/svg" height="100%">
  touch-action should be inherited by svg root element
  </svg>
</div>

<div>
  <img class='ta-none' expected-action='none' src='white-1x1.png'></img>
  touch-action should be applicable to img element
</div>

<div class='ta-none' style='height: 0; margin-bottom: 100px'>
  <img expected-action='none' src='white-1x1.png'></img>
  touch-action should be inherited by img element
</div>

<table style='margin-left: 15px; margin-bottom: 50px'>
  <tr class='ta-none'> <td expected-action='auto'>Test Cell</td> </tr>
</table>

<table style='margin-left: 15px'>
  <colgroup>
    <col class='ta-none'>
  </colgroup>
  <tr> <td expected-action='auto'>Test Cell</td> </tr>
</table>