-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-conditional-5.json
505 lines (505 loc) · 22.3 KB
/
css-conditional-5.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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
{
"spec": {
"title": "CSS Conditional Rules Module Level 5",
"url": "https://drafts.csswg.org/css-conditional-5/"
},
"properties": [
{
"name": "container-type",
"href": "https://drafts.csswg.org/css-conditional-5/#propdef-container-type",
"value": "normal | [ [ size | inline-size ] || scroll-state ]",
"initial": "normal",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "size",
"prose": "Establishes a query container for container size queries on both the inline and block axis. Applies style containment and size containment to the principal box, and establishes an independent formatting context.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-type-size",
"type": "value",
"value": "size"
},
{
"name": "inline-size",
"prose": "Establishes a query container for container size queries on the container’s own inline axis. Applies style containment and inline-size containment to the principal box, and establishes an independent formatting context.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-type-inline-size",
"type": "value",
"value": "inline-size"
},
{
"name": "scroll-state",
"prose": "Establishes a query container for scroll-state queries",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-type-scroll-state",
"type": "value",
"value": "scroll-state"
},
{
"name": "normal",
"prose": "The element is not a query container for any container size queries or scroll-state queries, but remains a query container for container style queries.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-type-normal",
"type": "value",
"value": "normal"
}
],
"styleDeclaration": [
"container-type",
"containerType"
]
},
{
"name": "container-name",
"href": "https://drafts.csswg.org/css-conditional-5/#propdef-container-name",
"value": "none | <custom-ident>+",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "the keyword none, or an ordered list of identifiers",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "none",
"prose": "The query container has no query container name.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-name-none",
"type": "value",
"value": "none"
},
{
"name": "<custom-ident>",
"prose": "Specifies a query container name as an identifier. The keywords none, and, not, and or are excluded from this <custom-ident>.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-name-custom-ident",
"type": "value",
"value": "<custom-ident>"
}
],
"styleDeclaration": [
"container-name",
"containerName"
]
},
{
"name": "container",
"href": "https://drafts.csswg.org/css-conditional-5/#propdef-container",
"value": "<'container-name'> [ / <'container-type'> ]?",
"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": [
"container"
]
}
],
"atrules": [
{
"name": "@when",
"prose": "The @when at-rule is a conditional group rule that generalizes the individual conditional group rules such as @media and @supports. It is defined as:",
"href": "https://drafts.csswg.org/css-conditional-5/#at-ruledef-when",
"descriptors": [],
"value": "@when <boolean-condition> { <rule-list> }"
},
{
"name": "@else",
"prose": "The @else rule is a conditional group rule used to form conditional rule chains, which associate multiple conditional rules and guarantee that only the first one that matches will evaluate its condition as true. It is defined as:",
"href": "https://drafts.csswg.org/css-conditional-5/#at-ruledef-else",
"descriptors": [],
"value": "@else <boolean-condition>? { <rule-list> }"
},
{
"name": "@container",
"prose": "The @container rule is a conditional group rule whose condition contains a container query, which is a boolean combination of container size queries and/or container style queries. Style declarations within the <block-contents> block of an @container rule are filtered by its condition to only match when the container query is true for their element’s query container.",
"href": "https://drafts.csswg.org/css-conditional-5/#at-ruledef-container",
"descriptors": [
{
"name": "width",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-width",
"for": "@container",
"value": "<length>",
"type": "range"
},
{
"name": "height",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-height",
"for": "@container",
"value": "<length>",
"type": "range"
},
{
"name": "inline-size",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-inline-size",
"for": "@container",
"value": "<length>",
"type": "range"
},
{
"name": "block-size",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-block-size",
"for": "@container",
"value": "<length>",
"type": "range"
},
{
"name": "aspect-ratio",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-aspect-ratio",
"for": "@container",
"value": "<ratio>",
"type": "range"
},
{
"name": "orientation",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-orientation",
"for": "@container",
"value": "portrait | landscape",
"type": "discrete",
"values": [
{
"name": "portrait",
"prose": "The orientation container feature is portrait when the value of the height container feature is greater than or equal to the value of the width container feature.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-orientation-portrait",
"type": "value",
"value": "portrait"
},
{
"name": "landscape",
"prose": "Otherwise orientation is landscape.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-orientation-landscape",
"type": "value",
"value": "landscape"
}
]
},
{
"name": "stuck",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-stuck",
"for": "@container",
"value": "none | top | right | bottom | left | block-start | inline-start | block-end | inline-end",
"type": "discrete",
"values": [
{
"name": "none",
"prose": "The sticky container is not shifted in any direction.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-none",
"type": "value",
"value": "none"
},
{
"name": "top",
"prose": "The sticky container is shifted to stay inside the top edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-top",
"type": "value",
"value": "top"
},
{
"name": "right",
"prose": "The sticky container is shifted to stay inside the right edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-right",
"type": "value",
"value": "right"
},
{
"name": "bottom",
"prose": "The sticky container is shifted to stay inside the bottom edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-bottom",
"type": "value",
"value": "bottom"
},
{
"name": "left",
"prose": "The sticky container is shifted to stay inside the left edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-left",
"type": "value",
"value": "left"
},
{
"name": "block-start",
"prose": "The sticky container is shifted to stay inside the block-start edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-block-start",
"type": "value",
"value": "block-start"
},
{
"name": "inline-start",
"prose": "The sticky container is shifted to stay inside the inline-start edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-inline-start",
"type": "value",
"value": "inline-start"
},
{
"name": "block-end",
"prose": "The sticky container is shifted to stay inside the block-end edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-block-end",
"type": "value",
"value": "block-end"
},
{
"name": "inline-end",
"prose": "The sticky container is shifted to stay inside the inline-end edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-stuck-inline-end",
"type": "value",
"value": "inline-end"
}
]
},
{
"name": "snapped",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-snapped",
"for": "@container",
"value": "none | x | y | block | inline | both",
"type": "discrete",
"values": [
{
"name": "none",
"prose": "The query container is not a snap target.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-snapped-none",
"type": "value",
"value": "none"
},
{
"name": "x",
"prose": "snapped container feature matches x if the query container is a horizontal snap target for its scroll container.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-snapped-x",
"type": "value",
"value": "x"
},
{
"name": "y",
"prose": "snapped container feature matches y if the query container is a vertical snap target for its scroll container.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-snapped-y",
"type": "value",
"value": "y"
},
{
"name": "block",
"prose": "snapped container feature matches block if the query container is a snap target for its scroll container. in the block direction of the snap container.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-snapped-block",
"type": "value",
"value": "block"
},
{
"name": "inline",
"prose": "snapped container feature matches inline if the query container is a snap target for its scroll container in the inline direction of the snap container.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-snapped-inline",
"type": "value",
"value": "inline"
},
{
"name": "both",
"prose": "snapped container feature matches both if the query container is a snap target for its scroll container in both directions of the snap container.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-snapped-both",
"type": "value",
"value": "both"
}
]
},
{
"name": "scrollable",
"href": "https://drafts.csswg.org/css-conditional-5/#descdef-container-scrollable",
"for": "@container",
"value": "none | top | right | bottom | left | block-start | inline-start | block-end | inline-end | x | y | block | inline",
"type": "discrete",
"values": [
{
"name": "none",
"prose": "The scroll container does not have scrollable overflow in any direction.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-none",
"type": "value",
"value": "none"
},
{
"name": "top",
"prose": "The scroll container has scrollable overflow past the top edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-top",
"type": "value",
"value": "top"
},
{
"name": "right",
"prose": "The scroll container has scrollable overflow past the right edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-right",
"type": "value",
"value": "right"
},
{
"name": "bottom",
"prose": "The scroll container has scrollable overflow past the bottom edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-bottom",
"type": "value",
"value": "bottom"
},
{
"name": "left",
"prose": "The scroll container has scrollable overflow past the left edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-left",
"type": "value",
"value": "left"
},
{
"name": "block-start",
"prose": "The scroll container has scrollable overflow past the block-start edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-block-start",
"type": "value",
"value": "block-start"
},
{
"name": "inline-start",
"prose": "The scroll container has scrollable overflow past the inline-start edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-inline-start",
"type": "value",
"value": "inline-start"
},
{
"name": "block-end",
"prose": "The scroll container has scrollable overflow past the block-end edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-block-end",
"type": "value",
"value": "block-end"
},
{
"name": "inline-end",
"prose": "The scroll container has scrollable overflow past the inline-end edge.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-inline-end",
"type": "value",
"value": "inline-end"
},
{
"name": "x",
"prose": "The scroll container has horizontally scrollable overflow.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-x",
"type": "value",
"value": "x"
},
{
"name": "y",
"prose": "The scroll container has vertically scrollable overflow.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-y",
"type": "value",
"value": "y"
},
{
"name": "block",
"prose": "The scroll container has scrollable overflow in its block direction.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-block",
"type": "value",
"value": "block"
},
{
"name": "inline",
"prose": "The scroll container has scrollable overflow in its inline direction.",
"href": "https://drafts.csswg.org/css-conditional-5/#valdef-container-scrollable-inline",
"type": "value",
"value": "inline"
}
]
}
],
"value": "@container <container-condition># { <block-contents> }"
}
],
"selectors": [],
"values": [
{
"name": "<supports-feature>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-supports-feature",
"type": "type",
"value": "<supports-selector-fn> | <supports-font-tech-fn> | <supports-font-format-fn> | <supports-decl>"
},
{
"name": "<supports-font-tech-fn>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-supports-font-tech-fn",
"type": "type",
"value": "font-tech( <font-tech> )"
},
{
"name": "<supports-font-format-fn>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-supports-font-format-fn",
"type": "type",
"value": "font-format( <font-format> )"
},
{
"name": "media()",
"href": "https://drafts.csswg.org/css-conditional-5/#funcdef-media",
"type": "function",
"value": "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"
},
{
"name": "supports()",
"href": "https://drafts.csswg.org/css-conditional-5/#funcdef-supports",
"type": "function",
"value": "supports( <declaration> )"
},
{
"name": "<container-condition>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-container-condition",
"type": "type",
"value": "[ <container-name>? <container-query>? ]!"
},
{
"name": "<container-name>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-container-name",
"type": "type",
"value": "<custom-ident>"
},
{
"name": "<container-query>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-container-query",
"type": "type",
"value": "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]"
},
{
"name": "<query-in-parens>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-query-in-parens",
"type": "type",
"value": "( <container-query> ) | ( <size-feature> ) | style( <style-query> ) | scroll-state( <scroll-state-query> ) | <general-enclosed>"
},
{
"name": "<style-query>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-style-query",
"type": "type",
"value": "not <style-in-parens> | <style-in-parens> [ [ and <style-in-parens> ]* | [ or <style-in-parens> ]* ] | <style-feature>"
},
{
"name": "<style-in-parens>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-style-in-parens",
"type": "type",
"value": "( <style-query> ) | ( <style-feature> ) | <general-enclosed>"
},
{
"name": "<scroll-state-query>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-scroll-state-query",
"type": "type",
"value": "not <scroll-state-in-parens> | <scroll-state-in-parens> [ [ and <scroll-state-in-parens> ]* | [ or <scroll-state-in-parens> ]* ] | <scroll-state-feature>"
},
{
"name": "<scroll-state-in-parens>",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-scroll-state-in-parens",
"type": "type",
"value": "( <scroll-state-query> ) | ( <scroll-state-feature> ) | <general-enclosed>"
},
{
"name": "<size-feature>",
"prose": "A container size query allows querying the size of the query container’s principal box. It is a boolean combination of individual size features (<size-feature>) that each query a single, specific dimensional feature of the query container. The syntax of a <size-feature> is the same as for a media feature: a feature name, a comparator, and a value. [mediaqueries-5] The boolean syntax and logic combining size features into a size query is the same as for CSS feature queries. (See @supports. [css-conditional-3])",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-size-feature",
"type": "type"
},
{
"name": "<style-feature>",
"prose": "A container style query allows querying the computed values of the query container. It is a boolean combination of individual style features (<style-feature>) that each query a single, specific property of the query container. The syntax of a <style-feature> is either the same as for a valid declaration [CSS-SYNTAX-3], a supported CSS property, or a <custom-property-name>.",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-style-feature",
"type": "type"
},
{
"name": "<scroll-state-feature>",
"prose": "A container scroll-state query allows querying a container for state that depends on scroll position. It is a boolean combination of individual scroll-state features (<scroll-state-feature>) that each query a single feature of the query container. The syntax of a <scroll-state-feature> is the same as for a media feature: a feature name, a comparator, and a value.",
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-scroll-state-feature",
"type": "type"
}
]
}