Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css-grid-layout / grid-shorthand-get-set-expected.txt
1 This test checks that the 'grid' shorthand is properly parsed and the longhand properties correctly assigned.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Test getting the longhand values when shorthand is set through CSS.
7 PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-template-columns') is "none"
8 PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-template-rows') is "none"
9 PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-template-areas') is "none"
10 PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-auto-flow') is "row"
11 PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-auto-columns') is "auto"
12 PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-auto-rows') is "auto"
13 PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-template-columns') is "15px"
14 PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-template-rows') is "10px"
15 PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-template-areas') is "none"
16 PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-auto-flow') is "row"
17 PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-auto-columns') is "auto"
18 PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-auto-rows') is "auto"
19 PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-template-columns') is "none"
20 PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-template-rows') is "none"
21 PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-template-areas') is "none"
22 PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-auto-flow') is "column"
23 PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-auto-columns') is "10px"
24 PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-auto-rows') is "10px"
25 PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-template-columns') is "none"
26 PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-template-rows') is "none"
27 PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-template-areas') is "none"
28 PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-auto-flow') is "row"
29 PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-auto-columns') is "auto"
30 PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-auto-rows') is "auto"
31 PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('grid-template-columns') is "none"
32 PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('grid-template-rows') is "none"
33 PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('grid-template-areas') is "none"
34 PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('grid-auto-flow') is "column dense"
35 PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('grid-auto-columns') is "10px"
36 PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('grid-auto-rows') is "10px"
37 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-template-columns') is "none"
38 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-template-rows') is "none"
39 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-template-areas') is "none"
40 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-auto-flow') is "row dense"
41 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-auto-columns') is "10px"
42 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-auto-rows') is "10px"
43 PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('grid-template-columns') is "none"
44 PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('grid-template-rows') is "none"
45 PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('grid-template-areas') is "none"
46 PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('grid-auto-flow') is "stack column"
47 PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('grid-auto-columns') is "10px"
48 PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('grid-auto-rows') is "10px"
49 PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('grid-template-columns') is "none"
50 PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('grid-template-rows') is "none"
51 PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('grid-template-areas') is "none"
52 PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('grid-auto-flow') is "stack row"
53 PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('grid-auto-columns') is "10px"
54 PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('grid-auto-rows') is "10px"
55 PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-template-columns') is "none"
56 PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-template-rows') is "none"
57 PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-template-areas') is "none"
58 PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-auto-flow') is "column"
59 PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-auto-columns') is "10px"
60 PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-auto-rows') is "20px"
61
62 Test getting wrong values for 'grid' shorthand through CSS (they should resolve to the default: 'none')
63 PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-template-columns') is "none"
64 PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-template-rows') is "none"
65 PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-template-areas') is "none"
66 PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-auto-flow') is "row"
67 PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-auto-columns') is "auto"
68 PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-auto-rows') is "auto"
69 PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-template-columns') is "none"
70 PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-template-rows') is "none"
71 PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-template-areas') is "none"
72 PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-auto-flow') is "row"
73 PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-auto-columns') is "auto"
74 PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-auto-rows') is "auto"
75 PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-template-columns') is "none"
76 PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-template-rows') is "none"
77 PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-template-areas') is "none"
78 PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-auto-flow') is "row"
79 PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-auto-columns') is "auto"
80 PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-auto-rows') is "auto"
81 PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('grid-template-columns') is "none"
82 PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('grid-template-rows') is "none"
83 PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('grid-template-areas') is "none"
84 PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('grid-auto-flow') is "row"
85 PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('grid-auto-columns') is "auto"
86 PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('grid-auto-rows') is "auto"
87 PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('grid-template-columns') is "none"
88 PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('grid-template-rows') is "none"
89 PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('grid-template-areas') is "none"
90 PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('grid-auto-flow') is "row"
91 PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('grid-auto-columns') is "auto"
92 PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('grid-auto-rows') is "auto"
93
94 Test getting and setting 'grid' shorthand through JS
95 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "10px"
96 PASS element.style.gridTemplateColumns is "10px"
97 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "20px"
98 PASS element.style.gridTemplateRows is "20px"
99 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
100 PASS element.style.gridTemplateAreas is "none"
101 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "row"
102 PASS element.style.gridAutoFlow is "initial"
103 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
104 PASS element.style.gridAutoColumns is "initial"
105 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
106 PASS element.style.gridAutoRows is "initial"
107 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "10px"
108 PASS element.style.gridTemplateColumns is "10px"
109 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "(line) 20px"
110 PASS element.style.gridTemplateRows is "(line) 20px"
111 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "\"a\""
112 PASS element.style.gridTemplateAreas is "\"a\""
113 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "row"
114 PASS element.style.gridAutoFlow is "initial"
115 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
116 PASS element.style.gridAutoColumns is "initial"
117 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
118 PASS element.style.gridAutoRows is "initial"
119 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
120 PASS element.style.gridTemplateColumns is "initial"
121 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
122 PASS element.style.gridTemplateRows is "initial"
123 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
124 PASS element.style.gridTemplateAreas is "initial"
125 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "row dense"
126 PASS element.style.gridAutoFlow is "row dense"
127 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "20px"
128 PASS element.style.gridAutoColumns is "20px"
129 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "20px"
130 PASS element.style.gridAutoRows is "20px"
131 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
132 PASS element.style.gridTemplateColumns is "initial"
133 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
134 PASS element.style.gridTemplateRows is "initial"
135 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
136 PASS element.style.gridTemplateAreas is "initial"
137 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "column"
138 PASS element.style.gridAutoFlow is "column"
139 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "20px"
140 PASS element.style.gridAutoColumns is "20px"
141 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "10px"
142 PASS element.style.gridAutoRows is "10px"
143
144 Test the initial value
145 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
146 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
147 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
148 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "row"
149 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
150 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
151 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none'
152 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'none'
153 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is 'none'
154 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'row'
155 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is 'auto'
156 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is 'auto'
157
158 Test setting grid-template-columns and grid-template-rows back to 'none' through JS
159 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
160 PASS element.style.gridTemplateColumns is "initial"
161 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
162 PASS element.style.gridTemplateRows is "initial"
163 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
164 PASS element.style.gridTemplateAreas is "initial"
165 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "column"
166 PASS element.style.gridAutoFlow is "column"
167 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "10px"
168 PASS element.style.gridAutoColumns is "10px"
169 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "20px"
170 PASS element.style.gridAutoRows is "20px"
171 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
172 PASS element.style.gridTemplateColumns is "none"
173 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
174 PASS element.style.gridTemplateRows is "none"
175 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
176 PASS element.style.gridTemplateAreas is "none"
177 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "row"
178 PASS element.style.gridAutoFlow is "initial"
179 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
180 PASS element.style.gridAutoColumns is "initial"
181 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
182 PASS element.style.gridAutoRows is "initial"
183 PASS successfullyParsed is true
184
185 TEST COMPLETE
186