OLD | NEW |
1 Test the parsing and application of the scroll-snap-* properties. | 1 Test the parsing and application of the scroll-snap-* properties. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Test case: inherited type | 6 Test case: inherited type |
7 PASS style.scrollSnapType is "mandatory" | 7 PASS style.scrollSnapType is "mandatory" |
8 | 8 |
9 Test case: initial type | 9 Test case: initial type |
10 PASS style.scrollSnapType is "none" | 10 PASS style.scrollSnapType is "none" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 Test case: percentage/pixel destination | 75 Test case: percentage/pixel destination |
76 PASS style.scrollSnapDestination is "0% 0px" | 76 PASS style.scrollSnapDestination is "0% 0px" |
77 | 77 |
78 Test case: percentage/percentage destination | 78 Test case: percentage/percentage destination |
79 PASS style.scrollSnapDestination is "5% 100%" | 79 PASS style.scrollSnapDestination is "5% 100%" |
80 | 80 |
81 Test case: calc/percentage destination | 81 Test case: calc/percentage destination |
82 PASS style.scrollSnapDestination is "calc(20px + 10%) 40%" | 82 PASS style.scrollSnapDestination is "calc(20px + 10%) 40%" |
83 | 83 |
84 Test case: 3 piece percentage destination | 84 Test case: 3 piece percentage destination |
85 PASS style.scrollSnapDestination is "0% 50%" | 85 PASS style.scrollSnapDestination is "0px 0px" |
86 | 86 |
87 Test case: 1 piece destination with implied center | 87 Test case: 1 piece destination with implied center |
88 PASS style.scrollSnapDestination is "50% 0%" | 88 PASS style.scrollSnapDestination is "50% 0%" |
89 | 89 |
90 Test case: single pixel coordinate | 90 Test case: single pixel coordinate |
91 PASS style.scrollSnapCoordinate is "50px 100px" | 91 PASS style.scrollSnapCoordinate is "50px 100px" |
92 | 92 |
93 Test case: single percentage coordinate | 93 Test case: single percentage coordinate |
94 PASS style.scrollSnapCoordinate is "50% 100%" | 94 PASS style.scrollSnapCoordinate is "50% 100%" |
95 | 95 |
96 Test case: 3 piece percentage coordinate | 96 Test case: 3 piece percentage coordinate |
97 PASS style.scrollSnapCoordinate is "0% 50%" | 97 PASS style.scrollSnapCoordinate is "none" |
98 | 98 |
99 Test case: 4 piece pixel coordinate | 99 Test case: 4 piece pixel coordinate |
100 PASS style.scrollSnapCoordinate is "10px 15px" | 100 PASS style.scrollSnapCoordinate is "10px 15px" |
101 | 101 |
102 Test case: 1 piece coordinate with implied center | 102 Test case: 1 piece coordinate with implied center |
103 PASS style.scrollSnapCoordinate is "0% 50%" | 103 PASS style.scrollSnapCoordinate is "0% 50%" |
104 | 104 |
105 Test case: multiple pixel coordinates | 105 Test case: multiple pixel coordinates |
106 PASS style.scrollSnapCoordinate is "50px 100px, 150px 100px, 200px 100px" | 106 PASS style.scrollSnapCoordinate is "50px 100px, 150px 100px, 200px 100px" |
107 | 107 |
108 Test case: multiple percentage coordinates | 108 Test case: multiple percentage coordinates |
109 PASS style.scrollSnapCoordinate is "50% 100%, 0% 100%, 200% 100%" | 109 PASS style.scrollSnapCoordinate is "50% 100%, 0% 100%, 200% 100%" |
110 | 110 |
111 Test case: multiple mixed pixel/percentage/calc coordinates | 111 Test case: multiple mixed pixel/percentage/calc coordinates |
112 PASS style.scrollSnapCoordinate is "calc(100px + 10%) 100%, 150% 50%, 200px calc
(10px + 5%)" | 112 PASS style.scrollSnapCoordinate is "calc(100px + 10%) 100%, 150% 50%, 200px calc
(10px + 5%)" |
113 | 113 |
114 Test case: reject invalid position list | 114 Test case: reject invalid position list |
115 PASS style.scrollSnapCoordinate is "none" | 115 PASS style.scrollSnapCoordinate is "none" |
116 | 116 |
117 Test case: reject invalid position separator | 117 Test case: reject invalid position separator |
118 PASS style.scrollSnapCoordinate is "none" | 118 PASS style.scrollSnapCoordinate is "none" |
119 | 119 |
120 Test case: reject invalid position with terminating comma | 120 Test case: reject invalid position with terminating comma |
121 PASS style.scrollSnapCoordinate is "none" | 121 PASS style.scrollSnapCoordinate is "none" |
122 | 122 |
123 PASS successfullyParsed is true | 123 PASS successfullyParsed is true |
124 | 124 |
125 TEST COMPLETE | 125 TEST COMPLETE |
126 | 126 |
OLD | NEW |