OLD | NEW |
(Empty) | |
| 1 /* |
| 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. |
| 4 */ |
| 5 .ta-none { |
| 6 -ms-touch-action: none; |
| 7 touch-action: none; |
| 8 } |
| 9 .ta-auto { |
| 10 -ms-touch-action: auto; |
| 11 touch-action: auto; |
| 12 } |
| 13 |
| 14 /* Make it easy to visualize div boundaries */ |
| 15 [expected-action] { |
| 16 margin: 15px; |
| 17 padding: 10px; |
| 18 border: 1px solid blue; |
| 19 max-width: 700px; |
| 20 } |
| 21 |
| 22 [expected-action=none]::before { |
| 23 content: "NONE \2190 "; |
| 24 } |
| 25 [expected-action=auto]::before { |
| 26 content: "AUTO \2190 "; |
| 27 } |
| 28 |
| 29 body { |
| 30 /* Leave gap for test to scroll down */ |
| 31 padding-top: 100px; |
| 32 /* Ensure pages are scrollable for manual testing */ |
| 33 height: 2000px; |
| 34 /* Use fixed line height so co-ordinates will be similar in test and browser *
/ |
| 35 font-size: 20px; |
| 36 white-space: nowrap; |
| 37 } |
| 38 |
| 39 .scroll { |
| 40 overflow: scroll; |
| 41 height: 50px; |
| 42 } |
| 43 .spacer { |
| 44 height: 500px; |
| 45 } |
| 46 |
| 47 .marker { |
| 48 position: absolute; |
| 49 opacity: 0.5; |
| 50 /* Note, if changing size, be sure to change kMarkerSize in JS too */ |
| 51 width: 6px; |
| 52 height: 6px; |
| 53 background-color: red; |
| 54 } |
OLD | NEW |