-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathcss-grid-3.json
335 lines (335 loc) · 15.4 KB
/
css-grid-3.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
{
"spec": {
"title": "CSS Grid Layout Module Level 3",
"url": "https://drafts.csswg.org/css-grid-3/"
},
"properties": [
{
"name": "item-slack",
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-slack",
"value": "<length-percentage> | infinite",
"initial": "1em",
"appliesTo": "masonry containers",
"inherited": "no",
"percentages": "relative to the grid-axis content box size of the masonry container",
"computedValue": "a computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "as length",
"values": [
{
"name": "<length-percentage>",
"prose": "Specifies the tie threshold for the masonry container. Placement positions are considered to be equally good (“tied”) if they are within the specified distance from the shortest position.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-slack-length-percentage",
"type": "value",
"value": "<length-percentage>"
},
{
"name": "infinite",
"prose": "Specifies an infinite tie threshold. This makes items distribute themselves strictly in order, without considering the length of the tracks at all.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-slack-infinite",
"type": "value",
"value": "infinite"
}
],
"styleDeclaration": [
"item-slack",
"itemSlack"
]
},
{
"name": "item-direction",
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-direction",
"value": "auto | row | column | row-reverse | column-reverse",
"initial": "auto",
"appliesTo": "flex containers, grid containers, masonry containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Computes to either row or column depending on the layout mode: On flex containers and grid containers, computes to row. On masonry containers, if grid-template-rows is not none and grid-template-columns is none, computes to the value representing row tracks; otherwise computes to the value representing column tracks.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-auto",
"type": "value",
"value": "auto"
},
{
"name": "row",
"prose": "Track-oriented Option Represents placement into rows, i.e. tracks or lines parallel to the inline axis. Items fill those rows in start-to-end order. Flow-oriented Option Represents row-primary item placement, i.e. placing items start-to-end in the inline axis, producing flex row lines in flex layout, and column grid tracks in masonry layout.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-row",
"type": "value",
"value": "row"
},
{
"name": "column",
"prose": "Track-oriented Option Represents placement into columns, i.e. tracks or lines parallel to the block axis. Items fill those columns in start-to-end order. Flow-oriented Option Represents column-primary item placement, i.e. placing items start-to-end in the block axis, producing flex column lines in flex layout, and row grid tracks in masonry layout.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-column",
"type": "value",
"value": "column"
},
{
"name": "row-reverse",
"prose": "Same as row, but using end-to-start placement order.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-row-reverse",
"type": "value",
"value": "row-reverse"
},
{
"name": "column-reverse",
"prose": "Same as column, but using end-to-start placement order.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-column-reverse",
"type": "value",
"value": "column-reverse"
}
],
"styleDeclaration": [
"item-direction",
"itemDirection"
]
},
{
"name": "item-track",
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-track",
"value": "auto | row | column | row-reverse | column-reverse",
"initial": "auto",
"appliesTo": "flex containers, grid containers, masonry containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Computes to either row or column depending on the layout mode: On flex containers and grid containers, computes to row. On masonry containers, if grid-template-rows is not none and grid-template-columns is none, computes to the value representing row tracks; otherwise computes to the value representing column tracks.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-auto",
"type": "value",
"value": "auto"
},
{
"name": "row",
"prose": "Track-oriented Option Represents placement into rows, i.e. tracks or lines parallel to the inline axis. Items fill those rows in start-to-end order. Flow-oriented Option Represents row-primary item placement, i.e. placing items start-to-end in the inline axis, producing flex row lines in flex layout, and column grid tracks in masonry layout.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-row",
"type": "value",
"value": "row"
},
{
"name": "column",
"prose": "Track-oriented Option Represents placement into columns, i.e. tracks or lines parallel to the block axis. Items fill those columns in start-to-end order. Flow-oriented Option Represents column-primary item placement, i.e. placing items start-to-end in the block axis, producing flex column lines in flex layout, and row grid tracks in masonry layout.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-column",
"type": "value",
"value": "column"
},
{
"name": "row-reverse",
"prose": "Same as row, but using end-to-start placement order.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-row-reverse",
"type": "value",
"value": "row-reverse"
},
{
"name": "column-reverse",
"prose": "Same as column, but using end-to-start placement order.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-direction-column-reverse",
"type": "value",
"value": "column-reverse"
}
],
"styleDeclaration": [
"item-track",
"itemTrack"
]
},
{
"name": "item-wrap",
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-wrap",
"value": "[ auto | nowrap | wrap ] || [ normal | reverse ] | wrap-reverse",
"initial": "auto",
"appliesTo": "flex containers, grid containers, masonry containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Computes to nowrap on flex containers, and wrap on everything else.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-auto",
"type": "value",
"value": "auto"
},
{
"name": "nowrap",
"prose": "Items are placed in the primary placement axis forever, even if they run out of room. In flex layout this creates a single-line flex container; in grid layout this creates implicit tracks in the primary placement axis as necessary.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-nowrap",
"type": "value",
"value": "nowrap"
},
{
"name": "wrap",
"prose": "Items wrap when the primary placement axis runs out of space. In flex layout this creates a multi-line flex container; in grid layout auto-placement algorithm moves to the next row/column when it runs out of explicit tracks in the primary placement axis.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-wrap",
"type": "value",
"value": "wrap"
},
{
"name": "normal",
"prose": "Items are placed in start-to-end order in the axis opposite to the primary track axis. In flex layout and grid layout, this controls the direction that new tracks (flex lines or grid tracks) are placed in. In masonry layout, for track-oriented syntax this controls which track is selected when several are tied for equal height; for flow-oriented syntax this controls which direction items fill their track in.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-normal",
"type": "value",
"value": "normal"
},
{
"name": "reverse",
"prose": "Items are placed in end-to-start order in the axis opposite to the primary track axis.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-reverse",
"type": "value",
"value": "reverse"
},
{
"name": "wrap-reverse",
"prose": "Computes to wrap reverse.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-wrap-reverse",
"type": "value",
"value": "wrap-reverse"
}
],
"styleDeclaration": [
"item-wrap",
"itemWrap"
]
},
{
"name": "item-cross",
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-cross",
"value": "[ auto | nowrap | wrap ] || [ normal | reverse ] | wrap-reverse",
"initial": "auto",
"appliesTo": "flex containers, grid containers, masonry containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Computes to nowrap on flex containers, and wrap on everything else.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-auto",
"type": "value",
"value": "auto"
},
{
"name": "nowrap",
"prose": "Items are placed in the primary placement axis forever, even if they run out of room. In flex layout this creates a single-line flex container; in grid layout this creates implicit tracks in the primary placement axis as necessary.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-nowrap",
"type": "value",
"value": "nowrap"
},
{
"name": "wrap",
"prose": "Items wrap when the primary placement axis runs out of space. In flex layout this creates a multi-line flex container; in grid layout auto-placement algorithm moves to the next row/column when it runs out of explicit tracks in the primary placement axis.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-wrap",
"type": "value",
"value": "wrap"
},
{
"name": "normal",
"prose": "Items are placed in start-to-end order in the axis opposite to the primary track axis. In flex layout and grid layout, this controls the direction that new tracks (flex lines or grid tracks) are placed in. In masonry layout, for track-oriented syntax this controls which track is selected when several are tied for equal height; for flow-oriented syntax this controls which direction items fill their track in.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-normal",
"type": "value",
"value": "normal"
},
{
"name": "reverse",
"prose": "Items are placed in end-to-start order in the axis opposite to the primary track axis.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-reverse",
"type": "value",
"value": "reverse"
},
{
"name": "wrap-reverse",
"prose": "Computes to wrap reverse.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-wrap-wrap-reverse",
"type": "value",
"value": "wrap-reverse"
}
],
"styleDeclaration": [
"item-cross",
"itemCross"
]
},
{
"name": "item-pack",
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-pack",
"value": "normal | dense || balance",
"initial": "normal",
"appliesTo": "flex containers, grid containers, masonry containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "Uses the default packing strategy for the layout mode.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-pack-normal",
"type": "value",
"value": "normal"
},
{
"name": "dense",
"prose": "Allows backtracking to place items in earlier spaces that were skipped. (Such spaces can exist because earlier items were too big for those spaces.) For example, in flex layout this allows placing items on earlier lines that still have enough empty space left over.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-pack-dense",
"type": "value",
"value": "dense"
},
{
"name": "balance",
"prose": "In flex layout, this value balances the amount of content on each line (including the last line), similar to text-wrap-style: balance.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-item-pack-balance",
"type": "value",
"value": "balance"
}
],
"styleDeclaration": [
"item-pack",
"itemPack"
]
},
{
"name": "item-flow",
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-flow",
"value": "<'item-direction'> || <'item-wrap'> || <'item-pack'> || <'item-slack'>",
"initial": "see individual properties",
"appliesTo": "see individual properties",
"inherited": "see individual properties",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"styleDeclaration": [
"item-flow",
"itemFlow"
]
}
],
"atrules": [],
"selectors": [],
"values": [],
"warnings": [
{
"msg": "Dangling value",
"name": "auto-areas",
"prose": "The new auto-areas value for the repeat() notation represents the number of repetitions necessary for the total number of explicit tracks to match the grid-template-areas / masonry-template-areas value in effect in the corresponding axis. If multiple tracks are listed for the repetition, the final repetition is truncated as necessary to produce the correct number of tracks.",
"href": "https://drafts.csswg.org/css-grid-3/#valdef-repeat-auto-areas",
"type": "value",
"value": "auto-areas",
"for": "repeat()"
}
]
}