Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: LayoutTests/fast/css/scroll-snap-parsing-expected.txt

Issue 1148873005: Parsing CSS properties for scroll snap points (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix parsePositionList Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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: calc repeat along y axis
58 PASS style.scrollSnapPointsY is "repeat(calc(25px + 1%))"
59
60 Test case: pixel/pixel destination
61 PASS style.scrollSnapDestination is "10px 50px"
62
63 Test case: pixel/percentage destination
64 PASS style.scrollSnapDestination is "20px 40%"
65
66 Test case: unitless/pixel destination
67 PASS style.scrollSnapDestination is "0px 10px"
68
69 Test case: percentage/pixel destination
70 PASS style.scrollSnapDestination is "0% 0px"
71
72 Test case: percentage/percentage destination
73 PASS style.scrollSnapDestination is "5% 100%"
74
75 Test case: calc/percentage destination
76 PASS style.scrollSnapDestination is "calc(20px + 10%) 40%"
77
78 Test case: 3 piece percentage destination
79 PASS style.scrollSnapDestination is "0% 50%"
80
81 Test case: 1 piece destination with implied center
82 PASS style.scrollSnapDestination is "50% 0%"
83
84 Test case: single pixel coordinate
85 PASS style.scrollSnapCoordinate is "50px 100px"
86
87 Test case: single percentage coordinate
88 PASS style.scrollSnapCoordinate is "50% 100%"
89
90 Test case: 3 piece percentage coordinate
91 PASS style.scrollSnapCoordinate is "0% 50%"
92
93 Test case: 4 piece pixel coordinate
94 PASS style.scrollSnapCoordinate is "10px 15px"
95
96 Test case: 1 piece coordinate with implied center
97 PASS style.scrollSnapCoordinate is "0% 50%"
98
99 Test case: multiple pixel coordinates
100 PASS style.scrollSnapCoordinate is "50px 100px, 150px 100px, 200px 100px"
101
102 Test case: multiple percentage coordinates
103 PASS style.scrollSnapCoordinate is "50% 100%, 0% 100%, 200% 100%"
104
105 Test case: multiple mixed pixel/percentage/calc coordinates
106 PASS style.scrollSnapCoordinate is "calc(100px + 10%) 100%, 150% 50%, 200px calc (10px + 5%)"
107
108 Test case: reject invalid position list
109 PASS style.scrollSnapCoordinate is "none"
110
111 Test case: reject invalid position separator
112 PASS style.scrollSnapCoordinate is "none"
113
114 Test case: reject invalid position with terminating comma
115 PASS style.scrollSnapCoordinate is "none"
116
117 PASS successfullyParsed is true
118
119 TEST COMPLETE
120
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698