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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html

Issue 1488493003: [css-grid] refactoring of layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel ="stylesheet">
4 <link href="resources/grid.css" rel="stylesheet"> 5 <link href="resources/grid.css" rel="stylesheet">
5 <script src="../../resources/check-layout.js"></script> 6 <script src="../../resources/check-layout.js"></script>
6 <style> 7 <style>
7 body { 8 body {
8 margin: 0; 9 margin: 0;
9 } 10 }
10 11
11 .grid { 12 .grid {
12 grid-template-columns: 150px 150px; 13 grid-template-columns: 150px 150px;
13 grid-template-rows: 120px 120px 120px; 14 grid-template-rows: 120px 120px 120px;
14 width: -webkit-fit-content;
15 margin-bottom: 20px; 15 margin-bottom: 20px;
16 } 16 }
17 17
18 .cellOverflowWidth { 18 .cellOverflowWidth {
19 width: 180px; 19 width: 180px;
20 height: 40px; 20 height: 40px;
21 } 21 }
22 22
23 .cellOverflowHeight { 23 .cellOverflowHeight {
24 width: 50px; 24 width: 50px;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 grid-column: 1; 123 grid-column: 1;
124 grid-row: 3; 124 grid-row: 3;
125 } 125 }
126 </style> 126 </style>
127 </head> 127 </head>
128 <body onload="checkLayout('.grid')"> 128 <body onload="checkLayout('.grid')">
129 129
130 <p>This test checks that the 'overflow' keyword is applied correctly for 'align' and 'justify' properties.</p> 130 <p>This test checks that the 'overflow' keyword is applied correctly for 'align' and 'justify' properties.</p>
131 131
132 <div style="position: relative"> 132 <div style="position: relative">
133 <div class="grid alignItemsCenter justifyItemsCenter" data-expected-width="3 00" data-expected-height="360"> 133 <div class="grid fit-content alignItemsCenter justifyItemsCenter" data-expec ted-width="300" data-expected-height="360">
134 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="-15" data-offset-y="40" data-expected-width="180" data-expected-height="40"></div> 134 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="-15" data-offset-y="40" data-expected-width="180" data-expected-height="40"></div>
135 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> 135 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div>
136 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 136 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
137 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> 137 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div>
138 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="135 " data-offset-y="160" data-expected-width="180" data-expected-height="40"></div> 138 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="135 " data-offset-y="160" data-expected-width="180" data-expected-height="40"></div>
139 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 139 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
140 </div> 140 </div>
141 </div> 141 </div>
142 142
143 <div style="position: relative"> 143 <div style="position: relative">
144 <div class="grid alignItemsCenterTrue justifyItemsCenterTrue" data-expected- width="300" data-expected-height="360"> 144 <div class="grid fit-content alignItemsCenterTrue justifyItemsCenterTrue" da ta-expected-width="300" data-expected-height="360">
145 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="50" d ata-offset-y="-15" data-expected-width="50" data-expected-height="150"></div> 145 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="50" d ata-offset-y="-15" data-expected-width="50" data-expected-height="150"></div>
146 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> 146 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div>
147 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 147 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
148 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> 148 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div>
149 <div class="cellOverflowHeight secondRowSecondColumn" data-offset-x="200 " data-offset-y="105" data-expected-width="50" data-expected-height="150"></div> 149 <div class="cellOverflowHeight secondRowSecondColumn" data-offset-x="200 " data-offset-y="105" data-expected-width="50" data-expected-height="150"></div>
150 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 150 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
151 </div> 151 </div>
152 </div> 152 </div>
153 153
154 <div style="position: relative"> 154 <div style="position: relative">
155 <div class="grid alignItemsCenterSafe justifyItemsCenterSafe" data-expected- width="300" data-expected-height="360"> 155 <div class="grid fit-content alignItemsCenterSafe justifyItemsCenterSafe" da ta-expected-width="300" data-expected-height="360">
156 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="0" da ta-offset-y="40" data-expected-width="180" data-expected-height="40"></div> 156 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="0" da ta-offset-y="40" data-expected-width="180" data-expected-height="40"></div>
157 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> 157 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div>
158 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 158 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
159 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> 159 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div>
160 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="150 " data-offset-y="160" data-expected-width="180" data-expected-height="40"></div> 160 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="150 " data-offset-y="160" data-expected-width="180" data-expected-height="40"></div>
161 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 161 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
162 </div> 162 </div>
163 </div> 163 </div>
164 164
165 <div style="position: relative"> 165 <div style="position: relative">
166 <div class="grid alignItemsCenterSafe justifyItemsCenterSafe" data-expected- width="300" data-expected-height="360"> 166 <div class="grid fit-content alignItemsCenterSafe justifyItemsCenterSafe" da ta-expected-width="300" data-expected-height="360">
167 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="50" d ata-offset-y="0" data-expected-width="50" data-expected-height="150"></div> 167 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="50" d ata-offset-y="0" data-expected-width="50" data-expected-height="150"></div>
168 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> 168 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div>
169 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 169 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="50" d ata-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
170 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> 170 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div>
171 <div class="cellOverflowHeight secondRowSecondColumn alignSelfCenterSafe justifySelfCenterSafe" data-offset-x="200" data-offset-y="120" data-expected-wi dth="50" data-expected-height="150"></div> 171 <div class="cellOverflowHeight secondRowSecondColumn alignSelfCenterSafe justifySelfCenterSafe" data-offset-x="200" data-offset-y="120" data-expected-wi dth="50" data-expected-height="150"></div>
172 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> 172 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div>
173 </div> 173 </div>
174 </div> 174 </div>
175 175
176 <div style="position: relative"> 176 <div style="position: relative">
177 <div class="grid alignItemsEnd justifyItemsEnd" data-expected-width="300" da ta-expected-height="360"> 177 <div class="grid fit-content alignItemsEnd justifyItemsEnd" data-expected-wi dth="300" data-expected-height="360">
178 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="-30" data-offset-y="80" data-expected-width="180" data-expected-height="40"></div> 178 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="-30" data-offset-y="80" data-expected-width="180" data-expected-height="40"></div>
179 <div class="cellWithNoOverflow secondRowFirstColumn justifySelfCenter" d ata-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected-hei ght="40"></div> 179 <div class="cellWithNoOverflow secondRowFirstColumn justifySelfCenter" d ata-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected-hei ght="40"></div>
180 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 180 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
181 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="250" data-offset-y="80" data-expected-width="50" data-expected-height="40"></div> 181 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="250" data-offset-y="80" data-expected-width="50" data-expected-height="40"></div>
182 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="120 " data-offset-y="200" data-expected-width="180" data-expected-height="40"></div> 182 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="120 " data-offset-y="200" data-expected-width="180" data-expected-height="40"></div>
183 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 183 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
184 </div> 184 </div>
185 </div> 185 </div>
186 186
187 <div style="position: relative"> 187 <div style="position: relative">
188 <div class="grid alignItemsEndTrue justifyItemsEndTrue" data-expected-width= "300" data-expected-height="360"> 188 <div class="grid fit-content alignItemsEndTrue justifyItemsEndTrue" data-exp ected-width="300" data-expected-height="360">
189 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="100" data-offset-y="-30" data-expected-width="50" data-expected-height="150"></div> 189 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="100" data-offset-y="-30" data-expected-width="50" data-expected-height="150"></div>
190 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> 190 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div>
191 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 191 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
192 <div class="cellWithNoOverflow firstRowSecondColumn alignSelfCenter" dat a-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-heigh t="40"></div> 192 <div class="cellWithNoOverflow firstRowSecondColumn alignSelfCenter" dat a-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-heigh t="40"></div>
193 <div class="cellOverflowHeight secondRowSecondColumn" data-offset-x="250 " data-offset-y="90" data-expected-width="50" data-expected-height="150"></div> 193 <div class="cellOverflowHeight secondRowSecondColumn" data-offset-x="250 " data-offset-y="90" data-expected-width="50" data-expected-height="150"></div>
194 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 194 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
195 </div> 195 </div>
196 </div> 196 </div>
197 197
198 <div style="position: relative"> 198 <div style="position: relative">
199 <div class="grid alignItemsEndSafe justifyItemsEndSafe" data-expected-width= "300" data-expected-height="360"> 199 <div class="grid fit-content alignItemsEndSafe justifyItemsEndSafe" data-exp ected-width="300" data-expected-height="360">
200 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="0" da ta-offset-y="80" data-expected-width="180" data-expected-height="40"></div> 200 <div class="cellOverflowWidth firstRowFirstColumn" data-offset-x="0" da ta-offset-y="80" data-expected-width="180" data-expected-height="40"></div>
201 <div class="cellWithNoOverflow secondRowFirstColumn justifySelfCenterTru e" data-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected -height="40"></div> 201 <div class="cellWithNoOverflow secondRowFirstColumn justifySelfCenterTru e" data-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected -height="40"></div>
202 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 202 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
203 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="250" data-offset-y="80" data-expected-width="50" data-expected-height="40"></div> 203 <div class="cellWithNoOverflow firstRowSecondColumn" data-offset-x="250" data-offset-y="80" data-expected-width="50" data-expected-height="40"></div>
204 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="150 " data-offset-y="200" data-expected-width="180" data-expected-height="40"></div> 204 <div class="cellOverflowWidth secondRowSecondColumn" data-offset-x="150 " data-offset-y="200" data-expected-width="180" data-expected-height="40"></div>
205 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 205 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
206 </div> 206 </div>
207 </div> 207 </div>
208 208
209 <div style="position: relative"> 209 <div style="position: relative">
210 <div class="grid alignItemsEndSafe justifyItemsEndSafe" data-expected-width= "300" data-expected-height="360"> 210 <div class="grid fit-content alignItemsEndSafe justifyItemsEndSafe" data-exp ected-width="300" data-expected-height="360">
211 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="100" data-offset-y="0" data-expected-width="50" data-expected-height="150"></div> 211 <div class="cellOverflowHeight firstRowFirstColumn" data-offset-x="100" data-offset-y="0" data-expected-width="50" data-expected-height="150"></div>
212 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> 212 <div class="cellWithNoOverflow secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div>
213 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 213 <div class="cellWithNoOverflow thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
214 <div class="cellWithNoOverflow firstRowSecondColumn alignSelfCenterTrue" data-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-h eight="40"></div> 214 <div class="cellWithNoOverflow firstRowSecondColumn alignSelfCenterTrue" data-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-h eight="40"></div>
215 <div class="cellOverflowHeight secondRowSecondColumn" data-offset-x="250 " data-offset-y="120" data-expected-width="50" data-expected-height="150"></div> 215 <div class="cellOverflowHeight secondRowSecondColumn" data-offset-x="250 " data-offset-y="120" data-expected-width="50" data-expected-height="150"></div>
216 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> 216 <div class="cellWithNoOverflow thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div>
217 </div> 217 </div>
218 </div> 218 </div>
219 219
220 </body> 220 </body>
221 </html> 221 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698