File: touch-action-simple.html

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (93 lines) | stat: -rw-r--r-- 2,997 bytes parent folder | download | duplicates (18)
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
84
85
86
87
88
89
90
91
92
93
<!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>

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

<div id="replaced-canvas">
  Test Canvas
</div>