OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>touch-action: parent > child: pan-x pan-y > child: pan-y</title> | 4 <title>touch-action: parent > child: pan-x pan-y > child: pan-y</title> |
5 <meta name="assert" content="TA15.17 - Touch action 'pan-x pan-y' 'pan-y
' test"> | 5 <meta name="assert" content="TA15.17 - Touch action 'pan-x pan-y' 'pan-y
' test"> |
6 <meta name="viewport" content="width=device-width"> | 6 <meta name="viewport" content="width=device-width"> |
7 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> | 7 <link rel="stylesheet" type="text/css" href="pointerevent_styles.css"> |
8 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
9 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
10 <script src="pointerevent_support.js"></script> | 10 <script src="pointerevent_support.js"></script> |
11 <style> | 11 <style> |
12 .scroller > div { | 12 .scroller > div { |
13 touch-action: pan-x pan-y; | 13 touch-action: pan-x pan-y; |
14 } | 14 } |
15 .scroller > div div { | 15 .scroller > div div { |
16 touch-action: pan-y; | 16 touch-action: pan-y; |
17 } | 17 } |
18 </style> | 18 </style> |
19 </head> | 19 </head> |
20 <body onload="run()"> | 20 <body onload="run()"> |
21 <h1>Pointer Events touch-action attribute support</h1> | 21 <h1>Pointer Events touch-action attribute support</h1> |
22 <h4 id="desc">Test Description: Try to scroll element DOWN then RIGHT. T
ap Complete button under the rectangle when done. Expected: only pans in y direc
tion.</h4> | 22 <h4 id="desc">Test Description: Try to scroll element DOWN then RIGHT in
side blue rectangle. Tap Complete button under the rectangle when done. Expected
: only pans in y direction.</h4> |
23 <p>Note: this test is for touch-devices only</p> | 23 <p>Note: this test is for touch-devices only</p> |
24 <div class="scroller" id="target0"> | 24 <div class="scroller" id="target0"> |
25 <div> | 25 <div> |
26 <div> | 26 <div id="scrollTarget"> |
27 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, se
d diem | 27 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, se
d diem |
28 nonummy nibh euismod tincidunt ut lacreet dolore magna aligu
am erat volutpat. | 28 nonummy nibh euismod tincidunt ut lacreet dolore magna aligu
am erat volutpat. |
29 Ut wisis enim ad minim veniam, quis nostrud exerci tution ul
lamcorper suscipit | 29 Ut wisis enim ad minim veniam, quis nostrud exerci tution ul
lamcorper suscipit |
30 lobortis nisl ut aliquip ex ea commodo consequat. | 30 lobortis nisl ut aliquip ex ea commodo consequat. |
31 <p>Lorem ipsum dolor sit amet...</p> | 31 <p>Lorem ipsum dolor sit amet...</p> |
32 <p>Lorem ipsum dolor sit amet...</p> | 32 <p>Lorem ipsum dolor sit amet...</p> |
33 <p>Lorem ipsum dolor sit amet...</p> | 33 <p>Lorem ipsum dolor sit amet...</p> |
34 <p>Lorem ipsum dolor sit amet...</p> | 34 <p>Lorem ipsum dolor sit amet...</p> |
35 <p>Lorem ipsum dolor sit amet...</p> | 35 <p>Lorem ipsum dolor sit amet...</p> |
36 <p>Lorem ipsum dolor sit amet...</p> | 36 <p>Lorem ipsum dolor sit amet...</p> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 }); | 102 }); |
103 } | 103 } |
104 </script> | 104 </script> |
105 <h1>behaviour: pan-y</h1> | 105 <h1>behaviour: pan-y</h1> |
106 <div id="complete-notice"> | 106 <div id="complete-notice"> |
107 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> | 107 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> |
108 </div> | 108 </div> |
109 <div id="log"></div> | 109 <div id="log"></div> |
110 </body> | 110 </body> |
111 </html> | 111 </html> |
OLD | NEW |