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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/float-not-protruding-into-next-grid-item.html

Issue 1488493003: [css-grid] refactoring of layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch rebased and refactoring of alignment css rules. Created 4 years, 11 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
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 <style> 6 <style>
6 .grid { 7 .grid {
7 grid-auto-columns: minmax(50px, max-content); 8 grid-auto-columns: minmax(50px, max-content);
8 grid-auto-rows: minmax(50px, max-content); 9 grid-auto-rows: minmax(50px, max-content);
9 width: -webkit-fit-content;
10 } 10 }
11 11
12 .floatChild { 12 .floatChild {
13 float: left; 13 float: left;
14 clear: both; 14 clear: both;
15 } 15 }
16 16
17 </style> 17 </style>
18 </style> 18 </style>
19 </head> 19 </head>
20 20
21 <body> 21 <body>
22 22
23 <div>This test checks that grid item sets a new formatting context for its conte nt, preventing any 'float' protruding content on the adjoining grid item ('Float ' text shouldn't overflow the first row).</div> 23 <div>This test checks that grid item sets a new formatting context for its conte nt, preventing any 'float' protruding content on the adjoining grid item ('Float ' text shouldn't overflow the first row).</div>
24 24
25 <div class="grid"> 25 <div class="grid fit-content">
26 <div class="firstRowFirstColumn"> 26 <div class="firstRowFirstColumn">
27 <div class="floatChild">Float</div> 27 <div class="floatChild">Float</div>
28 <div class="floatChild">Float</div> 28 <div class="floatChild">Float</div>
29 <div class="floatChild">Float</div> 29 <div class="floatChild">Float</div>
30 <div class="floatChild">Float</div> 30 <div class="floatChild">Float</div>
31 </div> 31 </div>
32 <div class="firstRowSecondColumn"></div> 32 <div class="firstRowSecondColumn"></div>
33 <div class="secondRowFirstColumn"></div> 33 <div class="secondRowFirstColumn"></div>
34 <div class="secondRowSecondColumn"></div> 34 <div class="secondRowSecondColumn"></div>
35 </div> 35 </div>
36 36
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698