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-x</title> | 4 <title>touch-action: parent > child: pan-x > child: pan-x</title> |
5 <meta name="assert" content="TA15.6 - when a user touches an element, th
e effect of that touch is determined by the value of the touch-action property a
nd the default touch behaviors on the element and its ancestors. Scrollable-Pare
nt, Child: `pan-x`, Grand-Child: `pan-x`"> | 5 <meta name="assert" content="TA15.6 - when a user touches an element, th
e effect of that touch is determined by the value of the touch-action property a
nd the default touch behaviors on the element and its ancestors. Scrollable-Pare
nt, Child: `pan-x`, Grand-Child: `pan-x`"> |
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-x; | 16 touch-action: pan-x; |
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 x 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 x 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 <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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 }); | 103 }); |
104 } | 104 } |
105 </script> | 105 </script> |
106 <h1>behaviour: pan-x</h1> | 106 <h1>behaviour: pan-x</h1> |
107 <div id="complete-notice"> | 107 <div id="complete-notice"> |
108 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> | 108 <p>The following pointer types were detected: <span id="pointertype-
log"></span>.</p> |
109 </div> | 109 </div> |
110 <div id="log"></div> | 110 <div id="log"></div> |
111 </body> | 111 </body> |
112 </html> | 112 </html> |
OLD | NEW |