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. | 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 | 5 It should be integrated into web-platform-test when the pinch-zoom is |
6 accepted into the specification. | 6 accepted into the specification. |
7 See https://github.com/w3c/pointerevents/issues/29 --> | 7 See https://github.com/w3c/pointerevents/issues/29 --> |
8 <title>touch-action: basic verification</title> | 8 <title>touch-action: basic verification</title> |
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. | 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. |
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. | 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. |
11 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. |
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. | 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. |
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. | 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. |
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."> | 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."> |
15 <meta name="viewport" content="width=device-width"> | 15 <meta name="viewport" content="width=device-width"> |
16 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> | 16 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> |
17 <script src="../../../resources/testharness.js"></script> | 17 <script src="../../../resources/testharness.js"></script> |
18 <script src="../../../resources/testharnessreport.js"></script> | 18 <script src="../../../resources/testharnessreport.js"></script> |
19 <script src="../../../imported/wpt/pointerevents/pointerevent_support.js
"></script> | |
20 <style> | 19 <style> |
21 /* | 20 /* |
22 Give some rules below something to override in order to test | 21 Give some rules below something to override in order to test |
23 that they really are being parsed | 22 that they really are being parsed |
24 */ | 23 */ |
25 .defnone { | 24 .defnone { |
26 touch-action: none; | 25 touch-action: none; |
27 } | 26 } |
28 </style> | 27 </style> |
29 </head> | 28 </head> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 <div class="test" id="explicit-invalid-12" style="touch-action: pan-left
pan-right;" expected="auto"></div> | 89 <div class="test" id="explicit-invalid-12" style="touch-action: pan-left
pan-right;" expected="auto"></div> |
91 <div class="test" id="explicit-invalid-13" style="touch-action: pan-up p
an-down;" expected="auto"></div> | 90 <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> | 91 <div class="test" id="explicit-invalid-14" style="touch-action: pinch-zo
om none;" expected="auto"></div> |
93 <div style="touch-action: none;"> | 92 <div style="touch-action: none;"> |
94 <div class="test" id="not-inherited" expected="auto"></div> | 93 <div class="test" id="not-inherited" expected="auto"></div> |
95 <div class="test" id="inherit" style="touch-action: inherit;" expected
="none"></div> | 94 <div class="test" id="inherit" style="touch-action: inherit;" expected
="none"></div> |
96 </div> | 95 </div> |
97 <div class="test defnone" id="initial" style="touch-action: initial;" ex
pected="auto"></div> | 96 <div class="test defnone" id="initial" style="touch-action: initial;" ex
pected="auto"></div> |
98 </body> | 97 </body> |
99 </html> | 98 </html> |
OLD | NEW |