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

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

Issue 320093002: [CSS Grid Layout] Named grid line span not allowed for automatic positions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@span-named-grid-line-to-upload
Patch Set: 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderGrid.h » ('j') | Source/core/rendering/RenderGrid.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <link href="resources/grid.css" rel="stylesheet"> 3 <link href="resources/grid.css" rel="stylesheet">
4 <style> 4 <style>
5 .grid { 5 .grid {
6 grid-auto-rows: 50px; 6 grid-auto-rows: 50px;
7 grid-auto-columns: 100px; 7 grid-auto-columns: 100px;
8 } 8 }
9 9
10 .gridNamedGridLinesColumns { 10 .gridNamedGridLinesColumns {
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 .autoRowSpanning2AutoColumnSpanning2 { 42 .autoRowSpanning2AutoColumnSpanning2 {
43 background-color: olive; 43 background-color: olive;
44 grid-column: span 2; 44 grid-column: span 2;
45 grid-row: span 2; 45 grid-row: span 2;
46 } 46 }
47 47
48 .autoRowAutoColumnSpanningLine { 48 .autoRowAutoColumnSpanningLine {
49 background-color: indigo; 49 background-color: indigo;
50 grid-column: span line; 50 grid-column: span line; /* This is treated as "span 1". */
51 grid-row: auto; 51 grid-row: auto;
52 } 52 }
53 53
54 .autoRowSpanningLineAutoColumn { 54 .autoRowSpanningLineAutoColumn {
55 background-color: moccasin; 55 background-color: moccasin;
56 grid-column: auto; 56 grid-column: auto;
57 grid-row: span line; 57 grid-row: span line; /* This is treated as "span 1". */
58 } 58 }
59 59
60 .autoRowAutoColumnSpanning2Line { 60 .autoRowAutoColumnSpanning2Line {
61 background-color: sienna; 61 background-color: sienna;
62 grid-column: span 2 line; 62 grid-column: span 2 line; /* This is treated as "span 1". */
63 grid-row: auto; 63 grid-row: auto;
64 } 64 }
65 65
66 .autoRowSpanning2LineAutoColumn { 66 .autoRowSpanning2LineAutoColumn {
67 background-color: tomato; 67 background-color: tomato;
68 grid-column: auto; 68 grid-column: auto;
69 grid-row: span 2 line; 69 grid-row: span 2 line; /* This is treated as "span 1". */
70 } 70 }
71 </style> 71 </style>
72 <script src="../../resources/check-layout.js"></script> 72 <script src="../../resources/check-layout.js"></script>
73 <body onload="checkLayout('.grid');"> 73 <body onload="checkLayout('.grid');">
74 74
75 <p>Thist test checks that span is supported in auto-placement for automatic posi tions.</p> 75 <p>Thist test checks that span is supported in auto-placement for automatic posi tions.</p>
76 76
77 <div style="position: relative"> 77 <div style="position: relative">
78 <div class="grid gridAutoFlowRow"> 78 <div class="grid gridAutoFlowRow">
79 <div class="sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x="0 " data-offset-y="0" data-expected-width="200" data-expected-height="50"></div> 79 <div class="sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x="0 " data-offset-y="0" data-expected-width="200" data-expected-height="50"></div>
(...skipping 17 matching lines...) Expand all
97 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="200" data -offset-y="0" data-expected-width="100" data-expected-height="50"></div> 97 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="200" data -offset-y="0" data-expected-width="100" data-expected-height="50"></div>
98 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="100" data-offset-y="50" data-expected-width="200" data-expected-height=" 100"></div> 98 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="100" data-offset-y="50" data-expected-width="200" data-expected-height=" 100"></div>
99 <div class="sizedToGridArea autoRowSpanning3AutoColumn" data-offset-x="0 " data-offset-y="100" data-expected-width="100" data-expected-height="150"></div > 99 <div class="sizedToGridArea autoRowSpanning3AutoColumn" data-offset-x="0 " data-offset-y="100" data-expected-width="100" data-expected-height="150"></div >
100 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="100" data-offset-y="150" data-expected-width="200" data-expected-height= "100"></div> 100 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="100" data-offset-y="150" data-expected-width="200" data-expected-height= "100"></div>
101 </div> 101 </div>
102 </div> 102 </div>
103 103
104 <div style="position: relative"> 104 <div style="position: relative">
105 <div class="grid gridAutoFlowRow gridNamedGridLinesColumns"> 105 <div class="grid gridAutoFlowRow gridNamedGridLinesColumns">
106 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o ffset-y="0" data-expected-width="50" data-expected-height="50"></div> 106 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o ffset-y="0" data-expected-width="50" data-expected-height="50"></div>
107 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset- x="50" data-offset-y="0" data-expected-width="300" data-expected-height="50"></d iv> 107 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset- x="50" data-offset-y="0" data-expected-width="100" data-expected-height="50"></d iv>
108 <div class="sizedToGridArea autoRowSecondColumn" data-offset-x="50" data -offset-y="50" data-expected-width="100" data-expected-height="50"></div> 108 <div class="sizedToGridArea autoRowSecondColumn" data-offset-x="50" data -offset-y="50" data-expected-width="100" data-expected-height="50"></div>
109 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset- x="150" data-offset-y="50" data-expected-width="200" data-expected-height="50">< /div> 109 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset- x="150" data-offset-y="0" data-expected-width="200" data-expected-height="50"></ div>
110 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="150" data -offset-y="50" data-expected-width="200" data-expected-height="50"></div>
111 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="0" data-offset-y="50" data-expected-width="50" data-expected-height="50"></div >
112 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset- x="0" data-offset-y="100" data-expected-width="50" data-expected-height="50"></d iv>
113 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o ffset-y="150" data-expected-width="50" data-expected-height="50"></div>
114 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="50" data-offset-y="100" data-expected-width="100" data-expected-height="50"></ div>
110 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="150" data -offset-y="100" data-expected-width="200" data-expected-height="50"></div> 115 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="150" data -offset-y="100" data-expected-width="200" data-expected-height="50"></div>
111 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="0" data-offset-y="100" data-expected-width="150" data-expected-height="50"></d iv> 116 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="50" data-offset-y="150" data-expected-width="100" data-expected-height="50"></ div>
112 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset- x="0" data-offset-y="150" data-expected-width="350" data-expected-height="50"></ div> 117 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="150" data-offset-y="150" data-expected-width="200" data-expected-height="50">< /div>
113 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o ffset-y="50" data-expected-width="50" data-expected-height="50"></div>
114 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o ffset-y="200" data-expected-width="50" data-expected-height="50"></div>
115 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="50" data-offset-y="200" data-expected-width="100" data-expected-height="50"></ div>
116 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="150" data -offset-y="200" data-expected-width="200" data-expected-height="50"></div>
117 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="0" data-offset-y="250" data-expected-width="150" data-expected-height="50"></d iv>
118 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x ="150" data-offset-y="250" data-expected-width="200" data-expected-height="50">< /div>
119 </div> 118 </div>
120 </div> 119 </div>
121 120
122 <div style="position: relative"> 121 <div style="position: relative">
123 <div class="grid gridAutoFlowColumn"> 122 <div class="grid gridAutoFlowColumn">
124 <div class="sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x="0 " data-offset-y="0" data-expected-width="100" data-expected-height="100"></div> 123 <div class="sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x="0 " data-offset-y="0" data-expected-width="100" data-expected-height="100"></div>
125 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of fset-y="100" data-expected-width="100" data-expected-height="50"></div> 124 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of fset-y="100" data-expected-width="100" data-expected-height="50"></div>
126 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="100" data- offset-y="0" data-expected-width="100" data-expected-height="50"></div> 125 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="100" data- offset-y="0" data-expected-width="100" data-expected-height="50"></div>
127 <div class="sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x="1 00" data-offset-y="50" data-expected-width="100" data-expected-height="100"></di v> 126 <div class="sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x="1 00" data-offset-y="50" data-expected-width="100" data-expected-height="100"></di v>
128 <div class="sizedToGridArea autoRowSpanning3AutoColumn" data-offset-x="2 00" data-offset-y="0" data-expected-width="100" data-expected-height="150"></div > 127 <div class="sizedToGridArea autoRowSpanning3AutoColumn" data-offset-x="2 00" data-offset-y="0" data-expected-width="100" data-expected-height="150"></div >
(...skipping 13 matching lines...) Expand all
142 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="0" data-o ffset-y="100" data-expected-width="100" data-expected-height="50"></div> 141 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="0" data-o ffset-y="100" data-expected-width="100" data-expected-height="50"></div>
143 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="100" data-offset-y="50" data-expected-width="200" data-expected-height=" 100"></div> 142 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="100" data-offset-y="50" data-expected-width="200" data-expected-height=" 100"></div>
144 <div class="sizedToGridArea autoRowAutoColumnSpanning3" data-offset-x="2 00" data-offset-y="0" data-expected-width="300" data-expected-height="50"></div> 143 <div class="sizedToGridArea autoRowAutoColumnSpanning3" data-offset-x="2 00" data-offset-y="0" data-expected-width="300" data-expected-height="50"></div>
145 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="300" data-offset-y="50" data-expected-width="200" data-expected-height=" 100"></div> 144 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of fset-x="300" data-offset-y="50" data-expected-width="200" data-expected-height=" 100"></div>
146 </div> 145 </div>
147 </div> 146 </div>
148 147
149 <div style="position: relative"> 148 <div style="position: relative">
150 <div class="grid gridAutoFlowColumn gridNamedGridLinesRows"> 149 <div class="grid gridAutoFlowColumn gridNamedGridLinesRows">
151 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="0" data-o ffset-y="0" data-expected-width="100" data-expected-height="50"></div> 150 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="0" data-o ffset-y="0" data-expected-width="100" data-expected-height="50"></div>
152 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset- x="0" data-offset-y="50" data-expected-width="100" data-expected-height="300"></ div> 151 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset- x="0" data-offset-y="50" data-expected-width="100" data-expected-height="100"></ div>
153 <div class="sizedToGridArea secondRowAutoColumn" data-offset-x="100" dat a-offset-y="50" data-expected-width="100" data-expected-height="100"></div> 152 <div class="sizedToGridArea secondRowAutoColumn" data-offset-x="100" dat a-offset-y="50" data-expected-width="100" data-expected-height="100"></div>
154 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset- x="100" data-offset-y="150" data-expected-width="100" data-expected-height="200" ></div> 153 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset- x="0" data-offset-y="150" data-expected-width="100" data-expected-height="200">< /div>
154 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="100" data -offset-y="150" data-expected-width="100" data-expected-height="200"></div>
155 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="100" data-offset-y="0" data-expected-width="100" data-expected-height="50"></d iv>
156 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset- x="200" data-offset-y="0" data-expected-width="100" data-expected-height="50"></ div>
157 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="300" data -offset-y="0" data-expected-width="100" data-expected-height="50"></div>
158 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="200" data-offset-y="50" data-expected-width="100" data-expected-height="100">< /div>
155 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="200" data -offset-y="150" data-expected-width="100" data-expected-height="200"></div> 159 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="200" data -offset-y="150" data-expected-width="100" data-expected-height="200"></div>
156 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="200" data-offset-y="0" data-expected-width="100" data-expected-height="150"></ div> 160 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="300" data-offset-y="50" data-expected-width="100" data-expected-height="100">< /div>
157 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset- x="300" data-offset-y="0" data-expected-width="100" data-expected-height="350">< /div> 161 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="300" data-offset-y="150" data-expected-width="100" data-expected-height="200"> </div-->
158 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="100" data -offset-y="0" data-expected-width="100" data-expected-height="50"></div>
159 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="400" data -offset-y="0" data-expected-width="100" data-expected-height="50"></div>
160 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="400" data-offset-y="50" data-expected-width="100" data-expected-height="100">< /div>
161 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="400" data -offset-y="150" data-expected-width="100" data-expected-height="200"></div>
162 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="500" data-offset-y="0" data-expected-width="100" data-expected-height="150"></ div>
163 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x ="500" data-offset-y="150" data-expected-width="100" data-expected-height="200"> </div>
164 </div> 162 </div>
165 </div> 163 </div>
166 164
167 </body> 165 </body>
168 </html> 166 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderGrid.h » ('j') | Source/core/rendering/RenderGrid.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698