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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html

Issue 196943026: [CSS Grid Layout] Support span in auto-placement algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 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 <!DOCTYPE html>
2 <html>
3 <link href="resources/grid.css" rel="stylesheet">
4 <style>
5 .grid {
6 grid-auto-rows: 50px;
7 grid-auto-columns: 100px;
8 }
9
10 .autoRowFirstColumnSpanning2 {
11 background-color: maroon;
12 grid-column: 1 / span 2;
13 grid-row: auto;
14 }
15
16 .autoRowSecondColumnSpanning2 {
17 background-color: olive;
18 grid-column: 2 / span 2;
19 grid-row: auto;
20 }
21
22 .autoRowFirstColumnSpanning3 {
23 background-color: teal;
24 grid-column: 1 / span 3;
25 grid-row: auto;
26 }
27
28 .firstRowSpanning2AutoColumn {
29 background-color: maroon;
30 grid-column: auto;
31 grid-row: 1 / span 2;
32 height: 100%;
33 }
34
35 .secondRowSpanning2AutoColumn {
36 background-color: olive;
37 grid-column: auto;
38 grid-row: 2 / span 2;
39 height: 100%;
40 }
41
42 .firstRowSpanning3AutoColumn {
43 background-color: teal;
44 grid-column: auto;
45 grid-row: 1 / span 3;
46 height: 100%;
47 }
48 </style>
49 <script src="../../resources/check-layout.js"></script>
50 <body onload="checkLayout('.grid');">
51
52 <p>Thist test checks that span is supported in auto-placement for definite posit ions.</p>
53
54 <div style="position: relative">
55 <div class="grid gridAutoFlowRow">
56 <div class="sizedToGridArea autoRowFirstColumnSpanning2" data-offset-x=" 0" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div>
57 <div class="sizedToGridArea autoRowSecondColumnSpanning2" data-offset-x= "100" data-offset-y="50" data-expected-width="200" data-expected-height="50"></d iv>
58 <div class="sizedToGridArea autoRowFirstColumnSpanning3" data-offset-x=" 0" data-offset-y="100" data-expected-width="300" data-expected-height="50"></div >
59 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="200" data- offset-y="0" data-expected-width="100" data-expected-height="50"></div>
60 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of fset-y="50" data-expected-width="100" data-expected-height="50"></div>
61 </div>
62 </div>
63
64 <div style="position: relative">
65 <div class="grid gridAutoFlowRow">
66 <div class="sizedToGridArea firstRowSpanning2AutoColumn" data-offset-x=" 0" data-offset-y="0" data-expected-width="100" data-expected-height="100"></div>
67 <div class="sizedToGridArea secondRowSpanning2AutoColumn" data-offset-x= "100" data-offset-y="50" data-expected-width="100" data-expected-height="100"></ div>
68 <div class="sizedToGridArea firstRowSpanning3AutoColumn" data-offset-x=" 200" data-offset-y="0" data-expected-width="100" data-expected-height="150"></di v>
69 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="100" data- offset-y="0" data-expected-width="100" data-expected-height="50"></div>
70 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of fset-y="100" data-expected-width="100" data-expected-height="50"></div>
71 </div>
72 </div>
73
74 <div style="position: relative">
75 <div class="grid gridAutoFlowColumn">
76 <div class="sizedToGridArea firstRowSpanning2AutoColumn" data-offset-x=" 0" data-offset-y="0" data-expected-width="100" data-expected-height="100"></div>
77 <div class="sizedToGridArea secondRowSpanning2AutoColumn" data-offset-x= "100" data-offset-y="50" data-expected-width="100" data-expected-height="100"></ div>
78 <div class="sizedToGridArea firstRowSpanning3AutoColumn" data-offset-x=" 200" data-offset-y="0" data-expected-width="100" data-expected-height="150"></di v>
79 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of fset-y="100" data-expected-width="100" data-expected-height="50"></div>
80 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="100" data- offset-y="0" data-expected-width="100" data-expected-height="50"></div>
81 </div>
82 </div>
83
84 <div style="position: relative">
85 <div class="grid gridAutoFlowColumn">
86 <div class="sizedToGridArea autoRowFirstColumnSpanning2" data-offset-x=" 0" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div>
87 <div class="sizedToGridArea autoRowSecondColumnSpanning2" data-offset-x= "100" data-offset-y="50" data-expected-width="200" data-expected-height="50"></d iv>
88 <div class="sizedToGridArea autoRowFirstColumnSpanning3" data-offset-x=" 0" data-offset-y="100" data-expected-width="300" data-expected-height="50"></div >
89 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of fset-y="50" data-expected-width="100" data-expected-height="50"></div>
90 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="200" data- offset-y="0" data-expected-width="100" data-expected-height="50"></div>
91 </div>
92 </div>
93
94 </body>
95 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698