OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>touch-action: parent > child: pan-x > child: pan-y</title> | 4 <title>touch-action: parent > child: pan-x > child: pan-y</title> |
5 <meta name="assert" content="TA15.13 - Touch action inherits child 'pan-
x' -> child 'pan-y' test"> | 5 <meta name="assert" content="TA15.13 - Touch action inherits child 'pan-
x' -> child '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; | 13 touch-action: pan-x; |
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: no panning/zooming/e
tc.</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
: no panning/zooming/etc.</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 <p> | 27 <p> |
28 Lorem ipsum dolor sit amet, consectetuer adipiscing elit
, sed diem | 28 Lorem ipsum dolor sit amet, consectetuer adipiscing elit
, sed diem |
29 nonummy nibh euismod tincidunt ut lacreet dolore magna a
liguam erat volutpat. | 29 nonummy nibh euismod tincidunt ut lacreet dolore magna a
liguam erat volutpat. |
30 Ut wisis enim ad minim veniam, quis nostrud exerci tutio
n ullamcorper suscipit | 30 Ut wisis enim ad minim veniam, quis nostrud exerci tutio
n ullamcorper suscipit |
31 lobortis nisl ut aliquip ex ea commodo consequat. | 31 lobortis nisl ut aliquip ex ea commodo consequat. |
32 </p> | 32 </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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 }); | 108 }); |
109 } | 109 } |
110 </script> | 110 </script> |
111 <h1>behaviour: none</h1> | 111 <h1>behaviour: none</h1> |
112 <div id="complete-notice"> | 112 <div id="complete-notice"> |
113 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> | 113 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> |
114 </div> | 114 </div> |
115 <div id="log"></div> | 115 <div id="log"></div> |
116 </body> | 116 </body> |
117 </html> | 117 </html> |
OLD | NEW |