OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <!-- This is a fork of the web-platform-test version to support pinch-zoom. |
| 5 It should be integrated into web-platform-test when the pinch-zoom is |
| 6 accepted into the specification. |
| 7 See https://github.com/w3c/pointerevents/issues/29 --> |
4 <title>touch-action: basic verification</title> | 8 <title>touch-action: basic verification</title> |
5 <meta name="assert" content="TA15.20 - The touch-action CSS property det
ermines whether touch input MAY trigger default behavior supplied by the user ag
ent. | 9 <meta name="assert" content="TA15.20 - The touch-action CSS property det
ermines whether touch input MAY trigger default behavior supplied by the user ag
ent. |
6 auto: The user agent MAY determine any permitted touch behaviors, such a
s panning and zooming manipulations of the viewport, for touches that begin on t
he element. | 10 auto: The user agent MAY determine any permitted touch behaviors, such a
s panning and zooming manipulations of the viewport, for touches that begin on t
he element. |
7 none: Touches that begin on the element MUST NOT trigger default touch b
ehaviors. | 11 none: Touches that begin on the element MUST NOT trigger default touch b
ehaviors. |
8 pan-x: The user agent MAY consider touches that begin on the element onl
y for the purposes of horizontally scrolling the element's nearest ancestor with
horizontally scrollable content. | 12 pan-x: The user agent MAY consider touches that begin on the element onl
y for the purposes of horizontally scrolling the element's nearest ancestor with
horizontally scrollable content. |
9 pan-y: The user agent MAY consider touches that begin on the element onl
y for the purposes of vertically scrolling the element's nearest ancestor with v
ertically scrollable content. | 13 pan-y: The user agent MAY consider touches that begin on the element onl
y for the purposes of vertically scrolling the element's nearest ancestor with v
ertically scrollable content. |
10 manipulation: The user agent MAY consider touches that begin on the elem
ent only for the purposes of scrolling and continuous zooming. Any additional be
haviors supported by auto are out of scope for this specification."> | 14 manipulation: The user agent MAY consider touches that begin on the elem
ent only for the purposes of scrolling and continuous zooming. Any additional be
haviors supported by auto are out of scope for this specification."> |
11 <meta name="viewport" content="width=device-width"> | 15 <meta name="viewport" content="width=device-width"> |
12 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> | 16 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> |
13 <script src="/resources/testharness.js"></script> | 17 <script src="../../../resources/testharness.js"></script> |
14 <script src="/resources/testharnessreport.js"></script> | 18 <script src="../../../resources/testharnessreport.js"></script> |
15 <script src="pointerevent_support.js"></script> | 19 <script src="../../../imported/wpt/pointerevents/pointerevent_support.js
"></script> |
16 <style> | 20 <style> |
17 /* | 21 /* |
18 Give some rules below something to override in order to test | 22 Give some rules below something to override in order to test |
19 that they really are being parsed | 23 that they really are being parsed |
20 */ | 24 */ |
21 .defnone { | 25 .defnone { |
22 touch-action: none; | 26 touch-action: none; |
23 } | 27 } |
24 </style> | 28 </style> |
25 </head> | 29 </head> |
(...skipping 24 matching lines...) Expand all Loading... |
50 <div id="log"></div> | 54 <div id="log"></div> |
51 <div class="test" id="default" expected="auto"></div> | 55 <div class="test" id="default" expected="auto"></div> |
52 <div class="test defnone" id="stylesheet-none" expected="none"></div> | 56 <div class="test defnone" id="stylesheet-none" expected="none"></div> |
53 <div class="test defnone" id="explicit-auto" style="touch-action: auto;"
expected="auto"></div> | 57 <div class="test defnone" id="explicit-auto" style="touch-action: auto;"
expected="auto"></div> |
54 <div class="test" id="explicit-pan-x" style="touch-action: pan-x;" expec
ted="pan-x"></div> | 58 <div class="test" id="explicit-pan-x" style="touch-action: pan-x;" expec
ted="pan-x"></div> |
55 <div class="test" id="explicit-pan-left" style="touch-action: pan-left;"
expected="pan-left"></div> | 59 <div class="test" id="explicit-pan-left" style="touch-action: pan-left;"
expected="pan-left"></div> |
56 <div class="test" id="explicit-pan-right" style="touch-action: pan-right
;" expected="pan-right"></div> | 60 <div class="test" id="explicit-pan-right" style="touch-action: pan-right
;" expected="pan-right"></div> |
57 <div class="test" id="explicit-pan-y" style="touch-action: pan-y;" expec
ted="pan-y"></div> | 61 <div class="test" id="explicit-pan-y" style="touch-action: pan-y;" expec
ted="pan-y"></div> |
58 <div class="test" id="explicit-pan-up" style="touch-action: pan-up;" exp
ected="pan-up"></div> | 62 <div class="test" id="explicit-pan-up" style="touch-action: pan-up;" exp
ected="pan-up"></div> |
59 <div class="test" id="explicit-pan-down" style="touch-action: pan-down;"
expected="pan-down"></div> | 63 <div class="test" id="explicit-pan-down" style="touch-action: pan-down;"
expected="pan-down"></div> |
| 64 <div class="test" id="explicit-pinch-zoom" style="touch-action: pinch-zo
om;" expected="pinch-zoom"></div> |
60 <div class="test" id="explicit-pan-x-pan-y" style="touch-action: pan-x p
an-y;" expected="pan-x pan-y"></div> | 65 <div class="test" id="explicit-pan-x-pan-y" style="touch-action: pan-x p
an-y;" expected="pan-x pan-y"></div> |
61 <div class="test" id="explicit-pan-y-pan-x" style="touch-action: pan-y p
an-x;" expected="pan-x pan-y"></div> | 66 <div class="test" id="explicit-pan-y-pan-x" style="touch-action: pan-y p
an-x;" expected="pan-x pan-y"></div> |
62 <div class="test" id="explicit-pan-left-pan-up" style="touch-action: pan
-left pan-up;" expected="pan-left pan-up"></div> | 67 <div class="test" id="explicit-pan-left-pan-up" style="touch-action: pan
-left pan-up;" expected="pan-left pan-up"></div> |
63 <div class="test" id="explicit-pan-left-pan-down" style="touch-action: p
an-left pan-down;" expected="pan-left pan-down"></div> | 68 <div class="test" id="explicit-pan-left-pan-down" style="touch-action: p
an-left pan-down;" expected="pan-left pan-down"></div> |
64 <div class="test" id="explicit-pan-right-pan-up" style="touch-action: pa
n-right pan-up;" expected="pan-right pan-up"></div> | 69 <div class="test" id="explicit-pan-right-pan-up" style="touch-action: pa
n-right pan-up;" expected="pan-right pan-up"></div> |
65 <div class="test" id="explicit-pan-right-pan-down" style="touch-action:
pan-right pan-down;" expected="pan-right pan-down"></div> | 70 <div class="test" id="explicit-pan-right-pan-down" style="touch-action:
pan-right pan-down;" expected="pan-right pan-down"></div> |
66 <div class="test" id="explicit-pan-up-pan-left" style="touch-action: pan
-up pan-left;" expected="pan-left pan-up"></div> | 71 <div class="test" id="explicit-pan-up-pan-left" style="touch-action: pan
-up pan-left;" expected="pan-left pan-up"></div> |
67 <div class="test" id="explicit-pan-up-pan-right" style="touch-action: pa
n-up pan-right;" expected="pan-right pan-up"></div> | 72 <div class="test" id="explicit-pan-up-pan-right" style="touch-action: pa
n-up pan-right;" expected="pan-right pan-up"></div> |
68 <div class="test" id="explicit-pan-down-pan-left" style="touch-action: p
an-down pan-left;" expected="pan-left pan-down"></div> | 73 <div class="test" id="explicit-pan-down-pan-left" style="touch-action: p
an-down pan-left;" expected="pan-left pan-down"></div> |
69 <div class="test" id="explicit-pan-down-pan-right" style="touch-action:
pan-down pan-right;" expected="pan-right pan-down"></div> | 74 <div class="test" id="explicit-pan-down-pan-right" style="touch-action:
pan-down pan-right;" expected="pan-right pan-down"></div> |
| 75 <div class="test" id="explicit-pinch-zoom-pan-x-pan-up" style="touch-act
ion: pinch-zoom pan-x pan-up;" expected="pan-x pan-up pinch-zoom"></div> |
| 76 <div class="test" id="explicit-pinch-zoom-pan-x-pan-y" style="touch-acti
on: pinch-zoom pan-x pan-y;" expected="manipulation"></div> |
70 <div class="test" id="explicit-manipulation" style="touch-action: manipu
lation;" expected="manipulation"></div> | 77 <div class="test" id="explicit-manipulation" style="touch-action: manipu
lation;" expected="manipulation"></div> |
71 <div class="test" id="explicit-none" style="touch-action: none;" expecte
d="none"></div> | 78 <div class="test" id="explicit-none" style="touch-action: none;" expecte
d="none"></div> |
72 <div class="test" id="explicit-invalid-1" style="touch-action: bogus;" e
xpected="auto"></div> | 79 <div class="test" id="explicit-invalid-1" style="touch-action: bogus;" e
xpected="auto"></div> |
73 <div class="test defnone" id="explicit-invalid-2" style="touch-action: a
uto pan-x;" expected="none"></div> | 80 <div class="test defnone" id="explicit-invalid-2" style="touch-action: a
uto pan-x;" expected="none"></div> |
74 <div class="test" id="explicit-invalid-3" style="touch-action: pan-y non
e;" expected="auto"></div> | 81 <div class="test" id="explicit-invalid-3" style="touch-action: pan-y non
e;" expected="auto"></div> |
75 <div class="test" id="explicit-invalid-4" style="touch-action: pan-x pan
-x;" expected="auto"></div> | 82 <div class="test" id="explicit-invalid-4" style="touch-action: pan-x pan
-x;" expected="auto"></div> |
76 <div class="test" id="explicit-invalid-5" style="touch-action: manipulat
ion pan-x;" expected="auto"></div> | 83 <div class="test" id="explicit-invalid-5" style="touch-action: manipulat
ion pan-x;" expected="auto"></div> |
77 <div class="test" id="explicit-invalid-6" style="touch-action: pan-x pan
-left;" expected="auto"></div> | 84 <div class="test" id="explicit-invalid-6" style="touch-action: pan-x pan
-left;" expected="auto"></div> |
78 <div class="test" id="explicit-invalid-7" style="touch-action: auto pan-
left;" expected="auto"></div> | 85 <div class="test" id="explicit-invalid-7" style="touch-action: auto pan-
left;" expected="auto"></div> |
79 <div class="test" id="explicit-invalid-8" style="touch-action: none pan-
left;" expected="auto"></div> | 86 <div class="test" id="explicit-invalid-8" style="touch-action: none pan-
left;" expected="auto"></div> |
80 <div class="test" id="explicit-invalid-9" style="touch-action: pan-x pan
-right;" expected="auto"></div> | 87 <div class="test" id="explicit-invalid-9" style="touch-action: pan-x pan
-right;" expected="auto"></div> |
81 <div class="test" id="explicit-invalid-10" style="touch-action: pan-y pa
n-up;" expected="auto"></div> | 88 <div class="test" id="explicit-invalid-10" style="touch-action: pan-y pa
n-up;" expected="auto"></div> |
82 <div class="test" id="explicit-invalid-11" style="touch-action: pan-y pa
n-down;" expected="auto"></div> | 89 <div class="test" id="explicit-invalid-11" style="touch-action: pan-y pa
n-down;" expected="auto"></div> |
83 <div class="test" id="explicit-invalid-12" style="touch-action: pan-left
pan-right;" expected="auto"></div> | 90 <div class="test" id="explicit-invalid-12" style="touch-action: pan-left
pan-right;" expected="auto"></div> |
84 <div class="test" id="explicit-invalid-13" style="touch-action: pan-up p
an-down;" expected="auto"></div> | 91 <div class="test" id="explicit-invalid-13" style="touch-action: pan-up p
an-down;" expected="auto"></div> |
| 92 <div class="test" id="explicit-invalid-14" style="touch-action: pinch-zo
om none;" expected="auto"></div> |
85 <div style="touch-action: none;"> | 93 <div style="touch-action: none;"> |
86 <div class="test" id="not-inherited" expected="auto"></div> | 94 <div class="test" id="not-inherited" expected="auto"></div> |
87 <div class="test" id="inherit" style="touch-action: inherit;" expected
="none"></div> | 95 <div class="test" id="inherit" style="touch-action: inherit;" expected
="none"></div> |
88 </div> | 96 </div> |
89 <div class="test defnone" id="initial" style="touch-action: initial;" ex
pected="auto"></div> | 97 <div class="test defnone" id="initial" style="touch-action: initial;" ex
pected="auto"></div> |
90 </body> | 98 </body> |
91 </html> | 99 </html> |
OLD | NEW |