@webref/css 5.4.3 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/CSS.json +416 -21
  3. package/README.md +4 -4
  4. package/SVG.json +42 -35
  5. package/compat.json +111 -75
  6. package/compositing.json +101 -12
  7. package/css-align.json +237 -29
  8. package/css-anchor.json +177 -19
  9. package/css-animations-2.json +37 -15
  10. package/css-animations.json +155 -31
  11. package/css-backgrounds-4.json +107 -32
  12. package/css-backgrounds.json +426 -59
  13. package/css-box.json +243 -20
  14. package/css-break.json +292 -11
  15. package/css-cascade-6.json +22 -13
  16. package/css-cascade.json +50 -15
  17. package/css-color-5.json +320 -35
  18. package/css-color-adjust.json +75 -8
  19. package/css-color.json +1100 -61
  20. package/css-conditional-4.json +11 -6
  21. package/css-conditional-5.json +38 -19
  22. package/css-conditional.json +28 -15
  23. package/css-contain-3.json +101 -26
  24. package/css-contain.json +71 -6
  25. package/css-content.json +263 -30
  26. package/css-counter-styles.json +455 -18
  27. package/css-display.json +250 -19
  28. package/css-easing.json +137 -25
  29. package/css-env.json +61 -6
  30. package/css-exclusions.json +65 -6
  31. package/css-extensions.json +20 -12
  32. package/css-flexbox.json +132 -11
  33. package/css-fonts-5.json +255 -13
  34. package/css-fonts.json +886 -74
  35. package/css-gcpm-4.json +30 -5
  36. package/css-gcpm.json +76 -15
  37. package/css-grid-3.json +10 -9
  38. package/css-grid.json +442 -42
  39. package/css-highlight-api.json +13 -5
  40. package/css-images-4.json +192 -67
  41. package/css-images.json +150 -30
  42. package/css-inline.json +525 -16
  43. package/css-layout-api.json +20 -0
  44. package/css-line-grid.json +80 -7
  45. package/css-lists.json +140 -19
  46. package/css-logical.json +125 -50
  47. package/css-masking.json +330 -47
  48. package/css-multicol-2.json +32 -5
  49. package/css-multicol.json +84 -13
  50. package/css-namespaces.json +15 -10
  51. package/css-nav.json +62 -7
  52. package/css-nesting.json +15 -0
  53. package/css-overflow-4.json +83 -11
  54. package/css-overflow.json +239 -18
  55. package/css-overscroll.json +110 -9
  56. package/css-page-floats.json +188 -16
  57. package/css-page.json +262 -67
  58. package/css-paint-api.json +8 -5
  59. package/css-position.json +269 -16
  60. package/css-properties-values-api.json +9 -7
  61. package/css-pseudo.json +67 -0
  62. package/css-regions.json +8 -7
  63. package/css-rhythm.json +69 -10
  64. package/css-round-display.json +47 -10
  65. package/css-ruby.json +136 -8
  66. package/css-scoping.json +27 -0
  67. package/css-scroll-anchoring.json +20 -5
  68. package/css-scroll-snap-2.json +272 -10
  69. package/css-scroll-snap.json +218 -29
  70. package/css-scrollbars.json +41 -6
  71. package/css-shadow-parts.json +8 -5
  72. package/css-shapes-2.json +190 -43
  73. package/css-shapes.json +130 -36
  74. package/css-size-adjust.json +26 -5
  75. package/css-sizing-4.json +404 -23
  76. package/css-sizing.json +231 -12
  77. package/css-speech.json +619 -35
  78. package/css-syntax.json +193 -92
  79. package/css-tables.json +10 -9
  80. package/css-text-4.json +800 -40
  81. package/css-text-decor-4.json +394 -23
  82. package/css-text-decor.json +159 -14
  83. package/css-text.json +371 -20
  84. package/css-transforms-2.json +177 -40
  85. package/css-transforms.json +137 -45
  86. package/css-transitions.json +33 -14
  87. package/css-ui.json +436 -42
  88. package/css-values-5.json +99 -14
  89. package/css-values.json +653 -146
  90. package/css-variables.json +12 -7
  91. package/css-view-transitions.json +45 -7
  92. package/css-will-change.json +36 -7
  93. package/css-writing-modes.json +141 -10
  94. package/fill-stroke.json +290 -35
  95. package/filter-effects-2.json +6 -5
  96. package/filter-effects.json +109 -45
  97. package/fullscreen.json +15 -0
  98. package/mathml-core.json +10 -9
  99. package/mediaqueries-5.json +505 -52
  100. package/mediaqueries.json +307 -40
  101. package/motion.json +99 -16
  102. package/package.json +1 -1
  103. package/scroll-animations.json +225 -24
  104. package/selectors.json +371 -30
  105. package/svg-strokes.json +8 -7
  106. package/upgrade-insecure-requests.json +26 -0
  107. package/html.json +0 -19
package/css-break.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "title": "CSS Fragmentation Module Level 4",
4
4
  "url": "https://drafts.csswg.org/css-break-4/"
5
5
  },
6
- "properties": {
7
- "break-before": {
6
+ "properties": [
7
+ {
8
8
  "name": "break-before",
9
9
  "value": "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
10
10
  "initial": "auto",
@@ -14,12 +14,98 @@
14
14
  "computedValue": "specified keyword",
15
15
  "canonicalOrder": "per grammar",
16
16
  "animationType": "discrete",
17
+ "values": [
18
+ {
19
+ "name": "auto",
20
+ "prose": "Neither force nor forbid a break before/after the principal box.",
21
+ "type": "value",
22
+ "value": "auto"
23
+ },
24
+ {
25
+ "name": "avoid",
26
+ "prose": "Avoid a break before/after the principal box.",
27
+ "type": "value",
28
+ "value": "avoid"
29
+ },
30
+ {
31
+ "name": "always",
32
+ "prose": "Always force a break before/after the principal box. The type of this break is that of the immediately-containing fragmentation context. For example, in a multi-column container forces a column break; in paged media not inside a multi-column container, forces a page break.",
33
+ "type": "value",
34
+ "value": "always"
35
+ },
36
+ {
37
+ "name": "all",
38
+ "prose": "Always force a break before/after the principal box. This value breaks through all containing fragmentation contexts. For example, inside a multi-column container in a region in a multi-column container in paged media, it forces simultaneously a column break in the inner multi-column container, a region break, a column break in the outer multi-column container, and a page break. It’s unclear if this value is needed.",
39
+ "type": "value",
40
+ "value": "all"
41
+ },
42
+ {
43
+ "name": "avoid-page",
44
+ "prose": "Avoid a page break before/after the principal box.",
45
+ "type": "value",
46
+ "value": "avoid-page"
47
+ },
48
+ {
49
+ "name": "page",
50
+ "prose": "Always force a page break before/after the principal box.",
51
+ "type": "value",
52
+ "value": "page"
53
+ },
54
+ {
55
+ "name": "left",
56
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a left page.",
57
+ "type": "value",
58
+ "value": "left"
59
+ },
60
+ {
61
+ "name": "right",
62
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a right page.",
63
+ "type": "value",
64
+ "value": "right"
65
+ },
66
+ {
67
+ "name": "recto",
68
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is second (according to the page progression) in a page spread.",
69
+ "type": "value",
70
+ "value": "recto"
71
+ },
72
+ {
73
+ "name": "verso",
74
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is first (according to the page progression) in a page spread.",
75
+ "type": "value",
76
+ "value": "verso"
77
+ },
78
+ {
79
+ "name": "avoid-column",
80
+ "prose": "Avoid a column break before/after the principal box.",
81
+ "type": "value",
82
+ "value": "avoid-column"
83
+ },
84
+ {
85
+ "name": "column",
86
+ "prose": "Always force a column break before/after the principal box.",
87
+ "type": "value",
88
+ "value": "column"
89
+ },
90
+ {
91
+ "name": "avoid-region",
92
+ "prose": "Avoid a region break before/after the principal box.",
93
+ "type": "value",
94
+ "value": "avoid-region"
95
+ },
96
+ {
97
+ "name": "region",
98
+ "prose": "Always force a region break before/after the principal box.",
99
+ "type": "value",
100
+ "value": "region"
101
+ }
102
+ ],
17
103
  "styleDeclaration": [
18
104
  "break-before",
19
105
  "breakBefore"
20
106
  ]
21
107
  },
22
- "break-after": {
108
+ {
23
109
  "name": "break-after",
24
110
  "value": "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
25
111
  "initial": "auto",
@@ -29,12 +115,98 @@
29
115
  "computedValue": "specified keyword",
30
116
  "canonicalOrder": "per grammar",
31
117
  "animationType": "discrete",
118
+ "values": [
119
+ {
120
+ "name": "auto",
121
+ "prose": "Neither force nor forbid a break before/after the principal box.",
122
+ "type": "value",
123
+ "value": "auto"
124
+ },
125
+ {
126
+ "name": "avoid",
127
+ "prose": "Avoid a break before/after the principal box.",
128
+ "type": "value",
129
+ "value": "avoid"
130
+ },
131
+ {
132
+ "name": "always",
133
+ "prose": "Always force a break before/after the principal box. The type of this break is that of the immediately-containing fragmentation context. For example, in a multi-column container forces a column break; in paged media not inside a multi-column container, forces a page break.",
134
+ "type": "value",
135
+ "value": "always"
136
+ },
137
+ {
138
+ "name": "all",
139
+ "prose": "Always force a break before/after the principal box. This value breaks through all containing fragmentation contexts. For example, inside a multi-column container in a region in a multi-column container in paged media, it forces simultaneously a column break in the inner multi-column container, a region break, a column break in the outer multi-column container, and a page break. It’s unclear if this value is needed.",
140
+ "type": "value",
141
+ "value": "all"
142
+ },
143
+ {
144
+ "name": "avoid-page",
145
+ "prose": "Avoid a page break before/after the principal box.",
146
+ "type": "value",
147
+ "value": "avoid-page"
148
+ },
149
+ {
150
+ "name": "page",
151
+ "prose": "Always force a page break before/after the principal box.",
152
+ "type": "value",
153
+ "value": "page"
154
+ },
155
+ {
156
+ "name": "left",
157
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a left page.",
158
+ "type": "value",
159
+ "value": "left"
160
+ },
161
+ {
162
+ "name": "right",
163
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as a right page.",
164
+ "type": "value",
165
+ "value": "right"
166
+ },
167
+ {
168
+ "name": "recto",
169
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is second (according to the page progression) in a page spread.",
170
+ "type": "value",
171
+ "value": "recto"
172
+ },
173
+ {
174
+ "name": "verso",
175
+ "prose": "Force one or two page breaks before/after the principal box so that the next page is formatted as either a left page or a right page, whichever is first (according to the page progression) in a page spread.",
176
+ "type": "value",
177
+ "value": "verso"
178
+ },
179
+ {
180
+ "name": "avoid-column",
181
+ "prose": "Avoid a column break before/after the principal box.",
182
+ "type": "value",
183
+ "value": "avoid-column"
184
+ },
185
+ {
186
+ "name": "column",
187
+ "prose": "Always force a column break before/after the principal box.",
188
+ "type": "value",
189
+ "value": "column"
190
+ },
191
+ {
192
+ "name": "avoid-region",
193
+ "prose": "Avoid a region break before/after the principal box.",
194
+ "type": "value",
195
+ "value": "avoid-region"
196
+ },
197
+ {
198
+ "name": "region",
199
+ "prose": "Always force a region break before/after the principal box.",
200
+ "type": "value",
201
+ "value": "region"
202
+ }
203
+ ],
32
204
  "styleDeclaration": [
33
205
  "break-after",
34
206
  "breakAfter"
35
207
  ]
36
208
  },
37
- "break-inside": {
209
+ {
38
210
  "name": "break-inside",
39
211
  "value": "auto | avoid | avoid-page | avoid-column | avoid-region",
40
212
  "initial": "auto",
@@ -44,12 +216,44 @@
44
216
  "computedValue": "specified keyword",
45
217
  "canonicalOrder": "per grammar",
46
218
  "animationType": "discrete",
219
+ "values": [
220
+ {
221
+ "name": "auto",
222
+ "prose": "Impose no additional breaking constraints within the box.",
223
+ "type": "value",
224
+ "value": "auto"
225
+ },
226
+ {
227
+ "name": "avoid",
228
+ "prose": "Avoid breaks within the box.",
229
+ "type": "value",
230
+ "value": "avoid"
231
+ },
232
+ {
233
+ "name": "avoid-page",
234
+ "prose": "Avoid a page break within the box.",
235
+ "type": "value",
236
+ "value": "avoid-page"
237
+ },
238
+ {
239
+ "name": "avoid-column",
240
+ "prose": "Avoid a column break within the box.",
241
+ "type": "value",
242
+ "value": "avoid-column"
243
+ },
244
+ {
245
+ "name": "avoid-region",
246
+ "prose": "Avoid a region break within the box.",
247
+ "type": "value",
248
+ "value": "avoid-region"
249
+ }
250
+ ],
47
251
  "styleDeclaration": [
48
252
  "break-inside",
49
253
  "breakInside"
50
254
  ]
51
255
  },
52
- "orphans": {
256
+ {
53
257
  "name": "orphans",
54
258
  "value": "<integer [0,∞]>",
55
259
  "initial": "2",
@@ -63,7 +267,7 @@
63
267
  "orphans"
64
268
  ]
65
269
  },
66
- "widows": {
270
+ {
67
271
  "name": "widows",
68
272
  "value": "<integer [0,∞]>",
69
273
  "initial": "2",
@@ -77,7 +281,7 @@
77
281
  "widows"
78
282
  ]
79
283
  },
80
- "margin-break": {
284
+ {
81
285
  "name": "margin-break",
82
286
  "value": "auto | keep | discard",
83
287
  "initial": "auto",
@@ -87,12 +291,32 @@
87
291
  "computedValue": "specified keyword",
88
292
  "canonicalOrder": "per grammar",
89
293
  "animationType": "discrete",
294
+ "values": [
295
+ {
296
+ "name": "auto",
297
+ "prose": "When an unforced break occurs before or after the box, any margins adjoining the break truncate to the remaining fragmentainer extent before the break, and are truncated to zero after the break. When a forced break occurs there, adjoining margins before the break are truncated, but margins after the break are preserved. Cloned margins are always truncated to zero.",
298
+ "type": "value",
299
+ "value": "auto"
300
+ },
301
+ {
302
+ "name": "keep",
303
+ "prose": "Margins adjoining a fragmentation break are not truncated.",
304
+ "type": "value",
305
+ "value": "keep"
306
+ },
307
+ {
308
+ "name": "discard",
309
+ "prose": "Margins adjoining a fragmentation break are always truncated, including at the start and end of a fragmentation context.",
310
+ "type": "value",
311
+ "value": "discard"
312
+ }
313
+ ],
90
314
  "styleDeclaration": [
91
315
  "margin-break",
92
316
  "marginBreak"
93
317
  ]
94
318
  },
95
- "box-decoration-break": {
319
+ {
96
320
  "name": "box-decoration-break",
97
321
  "value": "slice | clone",
98
322
  "initial": "slice",
@@ -102,12 +326,69 @@
102
326
  "computedValue": "specified keyword",
103
327
  "canonicalOrder": "per grammar",
104
328
  "animationType": "discrete",
329
+ "values": [
330
+ {
331
+ "name": "clone",
332
+ "prose": "Each box fragment is independently wrapped with the border, padding, and margin. The border-radius and border-image and box-shadow, if any, are applied to each fragment independently. The background is drawn independently in each fragment of the element. A no-repeat background image will thus be rendered once in each fragment of the element.",
333
+ "type": "value",
334
+ "value": "clone"
335
+ },
336
+ {
337
+ "name": "slice",
338
+ "prose": "The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward: no border and no padding are inserted at a break; no box-shadow is drawn at a broken edge; and backgrounds, border-radius, and the border-image are applied to the geometry of the whole box as if it were unbroken.",
339
+ "type": "value",
340
+ "value": "slice"
341
+ }
342
+ ],
105
343
  "styleDeclaration": [
106
344
  "box-decoration-break",
107
345
  "boxDecorationBreak"
108
346
  ]
109
347
  }
110
- },
111
- "atrules": {},
112
- "valuespaces": {}
348
+ ],
349
+ "atrules": [],
350
+ "selectors": [],
351
+ "values": [],
352
+ "warnings": [
353
+ {
354
+ "msg": "Dangling value",
355
+ "name": "auto",
356
+ "prose": "Impose no additional breaking constraints within the box.",
357
+ "type": "value",
358
+ "value": "auto",
359
+ "for": "page-break-inside"
360
+ },
361
+ {
362
+ "msg": "Dangling value",
363
+ "name": "avoid",
364
+ "prose": "Avoid breaks within the box.",
365
+ "type": "value",
366
+ "value": "avoid",
367
+ "for": "page-break-inside"
368
+ },
369
+ {
370
+ "msg": "Dangling value",
371
+ "name": "avoid-page",
372
+ "prose": "Avoid a page break within the box.",
373
+ "type": "value",
374
+ "value": "avoid-page",
375
+ "for": "page-break-inside"
376
+ },
377
+ {
378
+ "msg": "Dangling value",
379
+ "name": "avoid-column",
380
+ "prose": "Avoid a column break within the box.",
381
+ "type": "value",
382
+ "value": "avoid-column",
383
+ "for": "page-break-inside"
384
+ },
385
+ {
386
+ "msg": "Dangling value",
387
+ "name": "avoid-region",
388
+ "prose": "Avoid a region break within the box.",
389
+ "type": "value",
390
+ "value": "avoid-region",
391
+ "for": "page-break-inside"
392
+ }
393
+ ]
113
394
  }
@@ -3,22 +3,31 @@
3
3
  "title": "CSS Cascading and Inheritance Level 6",
4
4
  "url": "https://drafts.csswg.org/css-cascade-6/"
5
5
  },
6
- "properties": {},
7
- "atrules": {
8
- "@scope": {
9
- "value": "@scope (<scope-start>) [to (<scope-end>)]? { <stylesheet> }",
10
- "descriptors": []
6
+ "properties": [],
7
+ "atrules": [
8
+ {
9
+ "name": "@scope",
10
+ "prose": "The @scope block at-rule allows authors to scope style rules in CSS, with the application of weak scoping proximity between the scoping root and the subject of each style rule.",
11
+ "descriptors": [],
12
+ "value": "@scope (<scope-start>) [to (<scope-end>)]? { <stylesheet> }"
11
13
  }
12
- },
13
- "valuespaces": {
14
- "<scope-start>": {
15
- "prose": "The <scope-start> is a <forgiving-selector-list>. Each element matched by <scope-start> is a scoping element, creating a scope with itself as the scoping root."
14
+ ],
15
+ "selectors": [],
16
+ "values": [
17
+ {
18
+ "name": "<scope-start>",
19
+ "prose": "The <scope-start> is a <forgiving-selector-list>. Each element matched by <scope-start> is a scoping element, creating a scope with itself as the scoping root.",
20
+ "type": "type"
16
21
  },
17
- "<scope-end>": {
18
- "prose": "The <scope-end> is a <forgiving-selector-list> that is scoped by the <scope-start> selector, with the scoping roots as :scope elements. Each element matched by <scope-end> is a scoping limit. The scoping limit elements define the lower bounds of a scope, so that scoped selectors are not able to match any scoping limit elements, or any elements nested within them."
22
+ {
23
+ "name": "<scope-end>",
24
+ "prose": "The <scope-end> is a <forgiving-selector-list> that is scoped by the <scope-start> selector, with the scoping roots as :scope elements. Each element matched by <scope-end> is a scoping limit. The scoping limit elements define the lower bounds of a scope, so that scoped selectors are not able to match any scoping limit elements, or any elements nested within them.",
25
+ "type": "type"
19
26
  },
20
- "<selector-scope>": {
27
+ {
28
+ "name": "<selector-scope>",
29
+ "type": "type",
21
30
  "value": "( <scope-start> [/ <scope-end>]? )"
22
31
  }
23
- }
32
+ ]
24
33
  }
package/css-cascade.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "title": "CSS Cascading and Inheritance Level 5",
4
4
  "url": "https://drafts.csswg.org/css-cascade-5/"
5
5
  },
6
- "properties": {
7
- "all": {
6
+ "properties": [
7
+ {
8
8
  "name": "all",
9
9
  "value": "initial | inherit | unset | revert | revert-layer",
10
10
  "initial": "see individual properties",
@@ -14,27 +14,62 @@
14
14
  "computedValue": "see individual properties",
15
15
  "animationType": "see individual properties",
16
16
  "canonicalOrder": "per grammar",
17
+ "values": [
18
+ {
19
+ "name": "initial",
20
+ "prose": "The initial CSS-wide keyword represents the value defined as the property’s initial value.",
21
+ "type": "value",
22
+ "value": "initial"
23
+ },
24
+ {
25
+ "name": "inherit",
26
+ "prose": "The inherit CSS-wide keyword represents the property’s computed value on the parent element.",
27
+ "type": "value",
28
+ "value": "inherit"
29
+ },
30
+ {
31
+ "name": "unset",
32
+ "prose": "The unset CSS-wide keyword acts as either inherit or initial, depending on whether the property is inherited or not.",
33
+ "type": "value",
34
+ "value": "unset"
35
+ },
36
+ {
37
+ "name": "revert-layer",
38
+ "prose": "The revert-layer CSS-wide keyword rolls back the cascade similar to revert, except it works by cascade layer rather than by cascade origin.",
39
+ "type": "value",
40
+ "value": "revert-layer"
41
+ }
42
+ ],
17
43
  "styleDeclaration": [
18
44
  "all"
19
45
  ]
20
46
  }
21
- },
22
- "atrules": {
23
- "@import": {
24
- "value": "@import [ <url> | <string> ] [ layer | layer(<layer-name>) ]? <import-condition> ;",
25
- "descriptors": []
47
+ ],
48
+ "atrules": [
49
+ {
50
+ "name": "@import",
51
+ "prose": "The @import rule allows users to import style rules from other style sheets. If an @import rule refers to a valid stylesheet, user agents must treat the contents of the stylesheet as if they were written in place of the @import rule, with two exceptions:",
52
+ "descriptors": [],
53
+ "value": "@import [ <url> | <string> ] [ layer | layer(<layer-name>) ]? <import-conditions> ;"
26
54
  },
27
- "@layer": {
28
- "value": "@layer <layer-name>? { <stylesheet> } | @layer <layer-name>#;",
29
- "descriptors": []
55
+ {
56
+ "name": "@layer",
57
+ "prose": "The @layer rule declares a cascade layer, with the option to assign style rules.",
58
+ "descriptors": [],
59
+ "value": "@layer <layer-name>? { <stylesheet> } | @layer <layer-name>#;"
30
60
  }
31
- },
32
- "valuespaces": {
33
- "<import-conditions>": {
61
+ ],
62
+ "selectors": [],
63
+ "values": [
64
+ {
65
+ "name": "<import-conditions>",
66
+ "type": "type",
34
67
  "value": "[ supports( [ <supports-condition> | <declaration> ] ) ]? <media-query-list>?"
35
68
  },
36
- "<layer-name>": {
69
+ {
70
+ "name": "<layer-name>",
71
+ "type": "type",
37
72
  "value": "<ident> [ '.' <ident> ]*"
38
73
  }
39
- }
74
+ ]
40
75
  }