OLD | NEW |
1 /* | 1 /* |
2 Use a class to apply touch-action so that we can easily manually check | 2 Use a class to apply touch-action so that we can easily manually check |
3 the tests for consistent behavior on IE10 as well. | 3 the tests for consistent behavior on IE10 as well. |
4 */ | 4 */ |
5 .ta-none { | 5 .ta-none { |
6 -ms-touch-action: none; | 6 -ms-touch-action: none; |
7 touch-action: none; | 7 touch-action: none; |
8 } | 8 } |
9 .ta-auto { | 9 .ta-auto { |
10 -ms-touch-action: auto; | 10 -ms-touch-action: auto; |
11 touch-action: auto; | 11 touch-action: auto; |
12 } | 12 } |
| 13 .ta-panx { |
| 14 -ms-touch-action: pan-x; |
| 15 touch-action: pan-x; |
| 16 } |
| 17 .ta-pany { |
| 18 -ms-touch-action: pan-y; |
| 19 touch-action: pan-y; |
| 20 } |
| 21 .ta-panxy { |
| 22 -ms-touch-action: pan-x pan-y; |
| 23 touch-action: pan-x pan-y; |
| 24 } |
13 | 25 |
14 /* Make it easy to visualize div boundaries */ | 26 /* Make it easy to visualize div boundaries */ |
15 [expected-action] { | 27 [expected-action] { |
16 margin: 15px; | 28 margin: 15px; |
17 padding: 10px; | 29 padding: 10px; |
18 border: 1px solid blue; | 30 border: 1px solid blue; |
19 max-width: 700px; | 31 max-width: 700px; |
20 } | 32 } |
21 | 33 |
22 [expected-action=none]::before { | 34 [expected-action=none]::before { |
23 content: "NONE \2190 "; | 35 content: "NONE \2190 "; |
24 } | 36 } |
25 [expected-action=auto]::before { | 37 [expected-action=auto]::before { |
26 content: "AUTO \2190 "; | 38 content: "AUTO \2190 "; |
27 } | 39 } |
| 40 [expected-action=pan-x]::before { |
| 41 content: "PAN-X \2190 "; |
| 42 } |
| 43 [expected-action=pan-y]::before { |
| 44 content: "PAN-Y \2190 "; |
| 45 } |
| 46 [expected-action=pan-x-y]::before { |
| 47 content: "PAN-X PAN-Y \2190 "; |
| 48 } |
28 | 49 |
29 body { | 50 body { |
30 /* Leave gap for test to scroll down */ | 51 /* Leave gap for test to scroll down */ |
31 padding-top: 100px; | 52 padding-top: 100px; |
32 /* Ensure pages are scrollable for manual testing */ | 53 /* Ensure pages are scrollable for manual testing */ |
33 height: 2000px; | 54 height: 2000px; |
34 /* Use fixed line height so co-ordinates will be similar in test and browser *
/ | 55 /* Use fixed line height so co-ordinates will be similar in test and browser *
/ |
35 font-size: 20px; | 56 font-size: 20px; |
36 white-space: nowrap; | 57 white-space: nowrap; |
37 } | 58 } |
38 | 59 |
39 .scroll { | 60 .scroll { |
40 overflow: scroll; | 61 overflow: scroll; |
41 height: 50px; | 62 height: 50px; |
42 } | 63 } |
43 .spacer { | 64 .spacer { |
44 height: 500px; | 65 height: 500px; |
45 } | 66 } |
46 | 67 |
47 .marker { | 68 .marker { |
48 position: absolute; | 69 position: absolute; |
49 opacity: 0.5; | 70 opacity: 0.5; |
50 /* Note, if changing size, be sure to change kMarkerSize in JS too */ | 71 /* Note, if changing size, be sure to change kMarkerSize in JS too */ |
51 width: 6px; | 72 width: 6px; |
52 height: 6px; | 73 height: 6px; |
53 background-color: red; | 74 background-color: red; |
54 } | 75 } |
OLD | NEW |