OLD | NEW |
---|---|
1 .grid { | 1 .grid { |
2 display: grid; | 2 display: grid; |
3 background-color: grey; | 3 background-color: grey; |
4 } | 4 } |
5 | 5 |
6 .indefiniteSizeGrid { | 6 .indefiniteSizeGrid { |
7 display: grid; | 7 display: grid; |
8 background-color: grey; | 8 background-color: grey; |
9 width: -webkit-min-content; | 9 width: -webkit-min-content; |
10 height: auto; | 10 height: auto; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 grid-column: 2; | 115 grid-column: 2; |
116 grid-row: auto; | 116 grid-row: auto; |
117 } | 117 } |
118 | 118 |
119 .autoRowThirdColumn { | 119 .autoRowThirdColumn { |
120 background-color: magenta; | 120 background-color: magenta; |
121 grid-column: 3; | 121 grid-column: 3; |
122 grid-row: auto; | 122 grid-row: auto; |
123 } | 123 } |
124 | 124 |
125 .autoRowAutoColumnSpanning2 { | |
126 background-color: maroon; | |
127 grid-column: span 2; | |
128 grid-row: auto; | |
129 } | |
130 | |
131 .autoRowSpanning2AutoColumn { | |
132 background-color: aqua; | |
133 grid-column: auto; | |
134 grid-row: span 2; | |
135 } | |
136 | |
137 .autoRowSpanning2AutoColumnSpanning3 { | |
138 background-color: olive; | |
139 grid-column: span 3; | |
140 grid-row: span 2; | |
141 } | |
142 | |
143 .autoRowSpanning3AutoColumnSpanning2 { | |
144 background-color: indigo; | |
145 grid-column: span 2; | |
146 grid-row: span 3; | |
147 } | |
148 | |
125 /* Grid element flow. */ | 149 /* Grid element flow. */ |
126 .gridAutoFlowStack { | 150 .gridAutoFlowStack { |
127 grid-auto-flow: stack; | 151 grid-auto-flow: stack; |
128 } | 152 } |
129 | 153 |
130 .gridAutoFlowColumn { | 154 .gridAutoFlowColumn { |
131 grid-auto-flow: column; | 155 grid-auto-flow: column; |
132 } | 156 } |
133 | 157 |
158 .gridAutoFlowColumnDense { | |
159 grid-auto-flow: column dense; | |
160 } | |
161 | |
134 .gridAutoFlowRow { | 162 .gridAutoFlowRow { |
Julien - ping for review
2014/07/14 16:22:39
I would put a FIXME to rename that to gridAutoFlow
Manuel Rego
2014/07/14 20:10:03
I agree, I'll add the FIXME and provide a patch to
| |
135 grid-auto-flow: row; | 163 grid-auto-flow: row; |
136 } | 164 } |
137 | 165 |
166 .gridAutoFlowRowDense { | |
167 grid-auto-flow: row dense; | |
168 } | |
169 | |
138 /* This rule makes sure the container is smaller than any grid items to avoid di stributing any extra logical space to them. */ | 170 /* This rule makes sure the container is smaller than any grid items to avoid di stributing any extra logical space to them. */ |
139 .constrainedContainer { | 171 .constrainedContainer { |
140 width: 10px; | 172 width: 10px; |
141 height: 10px; | 173 height: 10px; |
142 } | 174 } |
143 | 175 |
144 .unconstrainedContainer { | 176 .unconstrainedContainer { |
145 width: 1000px; | 177 width: 1000px; |
146 height: 1000px; | 178 height: 1000px; |
147 } | 179 } |
(...skipping 13 matching lines...) Expand all Loading... | |
161 -webkit-writing-mode: vertical-lr; | 193 -webkit-writing-mode: vertical-lr; |
162 } | 194 } |
163 | 195 |
164 .horizontalBT { | 196 .horizontalBT { |
165 -webkit-writing-mode: horizontal-bt; | 197 -webkit-writing-mode: horizontal-bt; |
166 } | 198 } |
167 | 199 |
168 .directionRTL { | 200 .directionRTL { |
169 direction: rtl; | 201 direction: rtl; |
170 } | 202 } |
OLD | NEW |