| OLD | NEW |
| (Empty) | |
| 1 Test the parsing and application of the scroll-snap-* properties. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Test case: inherited type |
| 7 PASS style.scrollSnapType is "mandatory" |
| 8 |
| 9 Test case: initial type |
| 10 PASS style.scrollSnapType is "none" |
| 11 |
| 12 Test case: inherited points-x |
| 13 PASS style.scrollSnapPointsX is "repeat(20%)" |
| 14 |
| 15 Test case: initial points-x |
| 16 PASS style.scrollSnapPointsX is "none" |
| 17 |
| 18 Test case: inherited points-y |
| 19 PASS style.scrollSnapPointsY is "repeat(20%)" |
| 20 |
| 21 Test case: initial points-y |
| 22 PASS style.scrollSnapPointsY is "none" |
| 23 |
| 24 Test case: inherited destination |
| 25 PASS style.scrollSnapDestination is "20px 20px" |
| 26 |
| 27 Test case: initial destination |
| 28 PASS style.scrollSnapDestination is "0px 0px" |
| 29 |
| 30 Test case: inherited coordinate |
| 31 PASS style.scrollSnapCoordinate is "10px 10px" |
| 32 |
| 33 Test case: initial coordinate |
| 34 PASS style.scrollSnapCoordinate is "none" |
| 35 |
| 36 Test case: mandatory type |
| 37 PASS style.scrollSnapType is "mandatory" |
| 38 |
| 39 Test case: proximity type |
| 40 PASS style.scrollSnapType is "proximity" |
| 41 |
| 42 Test case: none type |
| 43 PASS style.scrollSnapType is "none" |
| 44 |
| 45 Test case: percentage points repeat along x axis |
| 46 PASS style.scrollSnapPointsX is "repeat(100%)" |
| 47 |
| 48 Test case: pixel points repeat along x axis |
| 49 PASS style.scrollSnapPointsX is "repeat(25px)" |
| 50 |
| 51 Test case: percentage points repeat along y axis |
| 52 PASS style.scrollSnapPointsY is "repeat(100%)" |
| 53 |
| 54 Test case: pixel points repeat along y axis |
| 55 PASS style.scrollSnapPointsY is "repeat(25px)" |
| 56 |
| 57 Test case: pixel/pixel destination |
| 58 PASS style.scrollSnapDestination is "10px 50px" |
| 59 |
| 60 Test case: pixel/percentage destination |
| 61 PASS style.scrollSnapDestination is "20px 40%" |
| 62 |
| 63 Test case: unitless/pixel destination |
| 64 PASS style.scrollSnapDestination is "0px 10px" |
| 65 |
| 66 Test case: percentage/pixel destination |
| 67 PASS style.scrollSnapDestination is "0% 0px" |
| 68 |
| 69 Test case: percentage/percentage destination |
| 70 PASS style.scrollSnapDestination is "5% 100%" |
| 71 |
| 72 Test case: 3 piece percentage destination |
| 73 PASS style.scrollSnapDestination is "0% 50%" |
| 74 |
| 75 Test case: 1 piece destination with implied center |
| 76 PASS style.scrollSnapDestination is "50% 0%" |
| 77 |
| 78 Test case: single pixel coordinate |
| 79 PASS style.scrollSnapCoordinate is "50px 100px" |
| 80 |
| 81 Test case: single percentage coordinate |
| 82 PASS style.scrollSnapCoordinate is "50% 100%" |
| 83 |
| 84 Test case: 3 piece percentage coordinate |
| 85 PASS style.scrollSnapCoordinate is "0% 50%" |
| 86 |
| 87 Test case: 4 piece pixel coordinate |
| 88 PASS style.scrollSnapCoordinate is "10px 15px" |
| 89 |
| 90 Test case: 1 piece coordinate with implied center |
| 91 PASS style.scrollSnapCoordinate is "0% 50%" |
| 92 |
| 93 PASS successfullyParsed is true |
| 94 |
| 95 TEST COMPLETE |
| 96 |
| OLD | NEW |