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 |
| 154 /* FIXME: Rename to gridAutoFlowColumnSparse to be more explicit about the algor
ithm mode by default. */ |
130 .gridAutoFlowColumn { | 155 .gridAutoFlowColumn { |
131 grid-auto-flow: column; | 156 grid-auto-flow: column; |
132 } | 157 } |
133 | 158 |
| 159 .gridAutoFlowColumnDense { |
| 160 grid-auto-flow: column dense; |
| 161 } |
| 162 |
| 163 /* FIXME: Rename to gridAutoFlowRowSparse to be more explicit about the algorith
m mode by default. */ |
134 .gridAutoFlowRow { | 164 .gridAutoFlowRow { |
135 grid-auto-flow: row; | 165 grid-auto-flow: row; |
136 } | 166 } |
137 | 167 |
| 168 .gridAutoFlowRowDense { |
| 169 grid-auto-flow: row dense; |
| 170 } |
| 171 |
138 /* This rule makes sure the container is smaller than any grid items to avoid di
stributing any extra logical space to them. */ | 172 /* This rule makes sure the container is smaller than any grid items to avoid di
stributing any extra logical space to them. */ |
139 .constrainedContainer { | 173 .constrainedContainer { |
140 width: 10px; | 174 width: 10px; |
141 height: 10px; | 175 height: 10px; |
142 } | 176 } |
143 | 177 |
144 .unconstrainedContainer { | 178 .unconstrainedContainer { |
145 width: 1000px; | 179 width: 1000px; |
146 height: 1000px; | 180 height: 1000px; |
147 } | 181 } |
(...skipping 13 matching lines...) Expand all Loading... |
161 -webkit-writing-mode: vertical-lr; | 195 -webkit-writing-mode: vertical-lr; |
162 } | 196 } |
163 | 197 |
164 .horizontalBT { | 198 .horizontalBT { |
165 -webkit-writing-mode: horizontal-bt; | 199 -webkit-writing-mode: horizontal-bt; |
166 } | 200 } |
167 | 201 |
168 .directionRTL { | 202 .directionRTL { |
169 direction: rtl; | 203 direction: rtl; |
170 } | 204 } |
OLD | NEW |