@webref/css 5.4.4 → 6.1.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 (108) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/CSS.json +450 -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 +300 -30
  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 +291 -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 +221 -68
  41. package/css-images-5.json +40 -0
  42. package/css-images.json +278 -33
  43. package/css-inline.json +525 -16
  44. package/css-layout-api.json +20 -0
  45. package/css-line-grid.json +80 -7
  46. package/css-lists.json +176 -21
  47. package/css-logical.json +125 -50
  48. package/css-masking.json +330 -47
  49. package/css-multicol-2.json +32 -5
  50. package/css-multicol.json +84 -13
  51. package/css-namespaces.json +15 -10
  52. package/css-nav.json +63 -7
  53. package/css-nesting.json +15 -0
  54. package/css-overflow-4.json +83 -10
  55. package/css-overflow.json +239 -18
  56. package/css-overscroll.json +110 -9
  57. package/css-page-floats.json +188 -16
  58. package/css-page.json +262 -67
  59. package/css-paint-api.json +8 -5
  60. package/css-position.json +269 -16
  61. package/css-properties-values-api.json +9 -7
  62. package/css-pseudo.json +67 -0
  63. package/css-regions.json +8 -7
  64. package/css-rhythm.json +69 -10
  65. package/css-round-display.json +47 -10
  66. package/css-ruby.json +137 -8
  67. package/css-scoping.json +27 -0
  68. package/css-scroll-anchoring.json +20 -5
  69. package/css-scroll-snap-2.json +272 -10
  70. package/css-scroll-snap.json +218 -29
  71. package/css-scrollbars.json +41 -6
  72. package/css-shadow-parts.json +8 -5
  73. package/css-shapes-2.json +190 -43
  74. package/css-shapes.json +130 -36
  75. package/css-size-adjust.json +26 -5
  76. package/css-sizing-4.json +404 -23
  77. package/css-sizing.json +231 -12
  78. package/css-speech.json +619 -35
  79. package/css-syntax.json +193 -92
  80. package/css-tables.json +10 -9
  81. package/css-text-4.json +800 -40
  82. package/css-text-decor-4.json +394 -23
  83. package/css-text-decor.json +159 -14
  84. package/css-text.json +371 -20
  85. package/css-transforms-2.json +177 -40
  86. package/css-transforms.json +137 -45
  87. package/css-transitions.json +33 -14
  88. package/css-ui.json +437 -42
  89. package/css-values-5.json +99 -14
  90. package/css-values.json +654 -146
  91. package/css-variables.json +12 -7
  92. package/css-view-transitions.json +45 -7
  93. package/css-will-change.json +36 -7
  94. package/css-writing-modes.json +141 -10
  95. package/fill-stroke.json +290 -35
  96. package/filter-effects-2.json +6 -5
  97. package/filter-effects.json +109 -45
  98. package/fullscreen.json +15 -0
  99. package/mathml-core.json +10 -9
  100. package/mediaqueries-5.json +505 -52
  101. package/mediaqueries.json +307 -40
  102. package/motion.json +99 -16
  103. package/package.json +1 -1
  104. package/scroll-animations.json +225 -24
  105. package/selectors.json +368 -30
  106. package/svg-strokes.json +8 -7
  107. package/upgrade-insecure-requests.json +26 -0
  108. package/html.json +0 -19
@@ -0,0 +1,20 @@
1
+ {
2
+ "spec": {
3
+ "title": "CSS Layout API Level 1",
4
+ "url": "https://drafts.css-houdini.org/css-layout-api-1/"
5
+ },
6
+ "properties": [],
7
+ "atrules": [],
8
+ "selectors": [],
9
+ "values": [],
10
+ "warnings": [
11
+ {
12
+ "msg": "Dangling value",
13
+ "name": "layout()",
14
+ "prose": "This value causes an element to generate a layout API container box.",
15
+ "type": "value",
16
+ "value": "layout()",
17
+ "for": "display"
18
+ }
19
+ ]
20
+ }
@@ -3,8 +3,8 @@
3
3
  "title": "CSS Line Grid Module Level 1",
4
4
  "url": "https://drafts.csswg.org/css-line-grid-1/"
5
5
  },
6
- "properties": {
7
- "line-grid": {
6
+ "properties": [
7
+ {
8
8
  "name": "line-grid",
9
9
  "value": "match-parent | create",
10
10
  "initial": "match-parent",
@@ -14,12 +14,26 @@
14
14
  "computedValue": "specified keyword",
15
15
  "canonicalOrder": "per grammar",
16
16
  "animationType": "discrete",
17
+ "values": [
18
+ {
19
+ "name": "match-parent",
20
+ "prose": "Box assumes the line grid of its parent if its writing mode is the same as its parent. If the box has a writing mode that is different than its parent, then the box creates a new line grid as create below.",
21
+ "type": "value",
22
+ "value": "match-parent"
23
+ },
24
+ {
25
+ "name": "create",
26
+ "prose": "Box creates a new line grid using its own font and line layout settings, including any adjustment to the line height caused by the line-height-step property. The line grid consists of a series of horizontal lines corresponding to all the baselines (alphabetic, text-top, text-bottom, mathematic, central, hanging, etc.) and to the line-over and line-under edges, positioned where they would fall if the contents of this element consisted entirely of line boxes filled with text (no sub-elements) using the first available font. If the box is paginated, the line grid is restarted on each page; since line boxes cannot be fragmented, no page begins with the bottom part of a line’s grid.",
27
+ "type": "value",
28
+ "value": "create"
29
+ }
30
+ ],
17
31
  "styleDeclaration": [
18
32
  "line-grid",
19
33
  "lineGrid"
20
34
  ]
21
35
  },
22
- "line-snap": {
36
+ {
23
37
  "name": "line-snap",
24
38
  "value": "none | baseline | contain",
25
39
  "initial": "none",
@@ -29,12 +43,32 @@
29
43
  "computedValue": "specified keyword",
30
44
  "canonicalOrder": "per grammar",
31
45
  "animationType": "discrete",
46
+ "values": [
47
+ {
48
+ "name": "none",
49
+ "prose": "Line boxes do not snap to the grid; they stack normally.",
50
+ "type": "value",
51
+ "value": "none"
52
+ },
53
+ {
54
+ "name": "baseline",
55
+ "prose": "The dominant baseline snaps with the matching baseline on the line grid applying to the element.",
56
+ "type": "value",
57
+ "value": "baseline"
58
+ },
59
+ {
60
+ "name": "contain",
61
+ "prose": "Two baselines are used to align the line box: the line box is snapped so that its central baseline is centered between one of the line grid’s text-over-edge baselines and a subsequent (but not necessarily consecutive) text-under-edge baseline.",
62
+ "type": "value",
63
+ "value": "contain"
64
+ }
65
+ ],
32
66
  "styleDeclaration": [
33
67
  "line-snap",
34
68
  "lineSnap"
35
69
  ]
36
70
  },
37
- "box-snap": {
71
+ {
38
72
  "name": "box-snap",
39
73
  "value": "none | block-start | block-end | center | baseline | last-baseline",
40
74
  "initial": "none",
@@ -44,12 +78,51 @@
44
78
  "computedValue": "as specified",
45
79
  "canonicalOrder": "per grammar",
46
80
  "animationType": "discrete",
81
+ "values": [
82
+ {
83
+ "name": "none",
84
+ "prose": "The block is not snapped to any grid.",
85
+ "type": "value",
86
+ "value": "none"
87
+ },
88
+ {
89
+ "name": "block-start",
90
+ "prose": "The block-start edge is snapped to the nearest grid line.",
91
+ "type": "value",
92
+ "value": "block-start"
93
+ },
94
+ {
95
+ "name": "block-end",
96
+ "prose": "The block-end edge is snapped to the nearest grid line.",
97
+ "type": "value",
98
+ "value": "block-end"
99
+ },
100
+ {
101
+ "name": "center",
102
+ "prose": "The block is centered between one of the baseline grid’s text-over baselines and a subsequent (but not necessarily consecutive) text-under baseline.",
103
+ "type": "value",
104
+ "value": "center"
105
+ },
106
+ {
107
+ "name": "baseline",
108
+ "prose": "The first line box’s dominant baseline is snapped to the nearest grid line.",
109
+ "type": "value",
110
+ "value": "baseline"
111
+ },
112
+ {
113
+ "name": "last-baseline",
114
+ "prose": "The last line box’s dominant baseline is snapped to the nearest grid line.",
115
+ "type": "value",
116
+ "value": "last-baseline"
117
+ }
118
+ ],
47
119
  "styleDeclaration": [
48
120
  "box-snap",
49
121
  "boxSnap"
50
122
  ]
51
123
  }
52
- },
53
- "atrules": {},
54
- "valuespaces": {}
124
+ ],
125
+ "atrules": [],
126
+ "selectors": [],
127
+ "values": []
55
128
  }
package/css-lists.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "title": "CSS Lists and Counters Module Level 3",
4
4
  "url": "https://drafts.csswg.org/css-lists-3/"
5
5
  },
6
- "properties": {
7
- "list-style-image": {
6
+ "properties": [
7
+ {
8
8
  "name": "list-style-image",
9
9
  "value": "<image> | none",
10
10
  "initial": "none",
@@ -14,12 +14,26 @@
14
14
  "computedValue": "the keyword noneor the computed <image>",
15
15
  "canonicalOrder": "per grammar",
16
16
  "animationType": "discrete",
17
+ "values": [
18
+ {
19
+ "name": "<image>",
20
+ "prose": "If the <image> represents a valid image, specifies the element’s marker image as the <image>. Otherwise, the element has no marker image.",
21
+ "type": "value",
22
+ "value": "<image>"
23
+ },
24
+ {
25
+ "name": "none",
26
+ "prose": "The element has no marker image.",
27
+ "type": "value",
28
+ "value": "none"
29
+ }
30
+ ],
17
31
  "styleDeclaration": [
18
32
  "list-style-image",
19
33
  "listStyleImage"
20
34
  ]
21
35
  },
22
- "list-style-type": {
36
+ {
23
37
  "name": "list-style-type",
24
38
  "value": "<counter-style> | <string> | none",
25
39
  "initial": "disc",
@@ -29,12 +43,32 @@
29
43
  "computedValue": "specified value",
30
44
  "canonicalOrder": "per grammar",
31
45
  "animationType": "discrete",
46
+ "values": [
47
+ {
48
+ "name": "<counter-style>",
49
+ "prose": "Specifies the element’s marker string as the value of the list-item counter represented using the specified <counter-style>. Specifically, the marker string is the result of generating a counter representation of the list-item counter value using the specified <counter-style>, prefixed by the prefix of the <counter-style>, and followed by the suffix of the <counter-style>. If the specified <counter-style> does not exist, decimal is assumed.",
50
+ "type": "value",
51
+ "value": "<counter-style>"
52
+ },
53
+ {
54
+ "name": "<string>",
55
+ "prose": "The element’s marker string is the specified <string>.",
56
+ "type": "value",
57
+ "value": "<string>"
58
+ },
59
+ {
60
+ "name": "none",
61
+ "prose": "The element has no marker string.",
62
+ "type": "value",
63
+ "value": "none"
64
+ }
65
+ ],
32
66
  "styleDeclaration": [
33
67
  "list-style-type",
34
68
  "listStyleType"
35
69
  ]
36
70
  },
37
- "list-style-position": {
71
+ {
38
72
  "name": "list-style-position",
39
73
  "value": "inside | outside",
40
74
  "initial": "outside",
@@ -44,12 +78,26 @@
44
78
  "computedValue": "keyword, but see prose",
45
79
  "canonicalOrder": "per grammar",
46
80
  "animationType": "discrete",
81
+ "values": [
82
+ {
83
+ "name": "inside",
84
+ "prose": "No special effect. (The ::marker is an inline element at the start of the list item’s contents.)",
85
+ "type": "value",
86
+ "value": "inside"
87
+ },
88
+ {
89
+ "name": "outside",
90
+ "prose": "If the list item is a block container: the marker box is a block container and is placed outside the principal block box; however, the position of the list-item marker adjacent to floats is undefined. CSS does not specify the precise location of the marker box or its position in the painting order, but does require that it be placed on the inline-start side of the box, using the writing mode of the box indicated by marker-side. The marker box is fixed with respect to the principal block box’s border and does not scroll with the principal box’s content. A UA may hide the marker if the element’s overflow is other than visible. (This allowance may change in the future.) The size or contents of the marker box may affect the height of the principal block box and/or the height of its first line box, and in some cases may cause the creation of a new line box; this interaction is also not defined. This is handwavey nonsense from CSS2, and needs a real definition. If the list item is an inline box: this value is equivalent to inside. Alternatively, outside could lay out the marker as a previous sibling of the principal inline box.",
91
+ "type": "value",
92
+ "value": "outside"
93
+ }
94
+ ],
47
95
  "styleDeclaration": [
48
96
  "list-style-position",
49
97
  "listStylePosition"
50
98
  ]
51
99
  },
52
- "list-style": {
100
+ {
53
101
  "name": "list-style",
54
102
  "value": "<'list-style-position'> || <'list-style-image'> || <'list-style-type'>",
55
103
  "initial": "see individual properties",
@@ -64,7 +112,7 @@
64
112
  "listStyle"
65
113
  ]
66
114
  },
67
- "marker-side": {
115
+ {
68
116
  "name": "marker-side",
69
117
  "value": "match-self | match-parent",
70
118
  "initial": "match-self",
@@ -74,12 +122,26 @@
74
122
  "computedValue": "specified keyword",
75
123
  "canonicalOrder": "per grammar",
76
124
  "animationType": "discrete",
125
+ "values": [
126
+ {
127
+ "name": "match-self",
128
+ "prose": "The marker box is positioned using the directionality of the ::marker’s originating element.",
129
+ "type": "value",
130
+ "value": "match-self"
131
+ },
132
+ {
133
+ "name": "match-parent",
134
+ "prose": "The marker box is positioned using the directionality of the ::marker’s originating element’s parent element.",
135
+ "type": "value",
136
+ "value": "match-parent"
137
+ }
138
+ ],
77
139
  "styleDeclaration": [
78
140
  "marker-side",
79
141
  "markerSide"
80
142
  ]
81
143
  },
82
- "counter-reset": {
144
+ {
83
145
  "name": "counter-reset",
84
146
  "value": "[ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none",
85
147
  "initial": "none",
@@ -89,12 +151,38 @@
89
151
  "computedValue": "the keyword none or a list, each item an identifier or a reversed() function paired with an integer",
90
152
  "canonicalOrder": "per grammar",
91
153
  "animationType": "by computed value type",
154
+ "values": [
155
+ {
156
+ "name": "none",
157
+ "prose": "This element does not create any new counters.",
158
+ "type": "value",
159
+ "value": "none"
160
+ },
161
+ {
162
+ "name": "<counter-name> <integer>?",
163
+ "prose": "Instantiates a counter of the given <counter-name> with a starting value of the given <integer>, defaulting to 0.",
164
+ "type": "value",
165
+ "value": "<counter-name> <integer>?"
166
+ },
167
+ {
168
+ "name": "<reversed-counter-name> <integer>?",
169
+ "prose": "Instantiates a reversed counter of the given <counter-name> with a starting value of the given <integer>, or no starting value if not given.",
170
+ "type": "value",
171
+ "value": "<reversed-counter-name> <integer>?"
172
+ },
173
+ {
174
+ "name": "list-item",
175
+ "prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
176
+ "type": "value",
177
+ "value": "list-item"
178
+ }
179
+ ],
92
180
  "styleDeclaration": [
93
181
  "counter-reset",
94
182
  "counterReset"
95
183
  ]
96
184
  },
97
- "counter-increment": {
185
+ {
98
186
  "name": "counter-increment",
99
187
  "value": "[ <counter-name> <integer>? ]+ | none",
100
188
  "initial": "none",
@@ -104,12 +192,32 @@
104
192
  "computedValue": "the keyword none or a list, each item an identifier paired with an integer",
105
193
  "canonicalOrder": "per grammar",
106
194
  "animationType": "by computed value type",
195
+ "values": [
196
+ {
197
+ "name": "none",
198
+ "prose": "This element does not alter the value of any counters.",
199
+ "type": "value",
200
+ "value": "none"
201
+ },
202
+ {
203
+ "name": "<counter-name> <integer>?",
204
+ "prose": "Sets (for counter-set) or increments (for counter-increment) the value of the named counter on the element to/by the specified <integer>. If the <integer> is omitted, it defaults to 1 (for counter-increment) or 0 (for counter-set). If there is not currently a counter of the given name on the element, the element instantiates a new counter of the given name with a starting value of 0 before setting or incrementing its value.",
205
+ "type": "value",
206
+ "value": "<counter-name> <integer>?"
207
+ },
208
+ {
209
+ "name": "list-item",
210
+ "prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
211
+ "type": "value",
212
+ "value": "list-item"
213
+ }
214
+ ],
107
215
  "styleDeclaration": [
108
216
  "counter-increment",
109
217
  "counterIncrement"
110
218
  ]
111
219
  },
112
- "counter-set": {
220
+ {
113
221
  "name": "counter-set",
114
222
  "value": "[ <counter-name> <integer>? ]+ | none",
115
223
  "initial": "none",
@@ -119,28 +227,75 @@
119
227
  "computedValue": "the keyword none or a list, each item an identifier paired with an integer",
120
228
  "canonicalOrder": "per grammar",
121
229
  "animationType": "by computed value type",
230
+ "values": [
231
+ {
232
+ "name": "none",
233
+ "prose": "This element does not alter the value of any counters.",
234
+ "type": "value",
235
+ "value": "none"
236
+ },
237
+ {
238
+ "name": "<counter-name> <integer>?",
239
+ "prose": "Sets (for counter-set) or increments (for counter-increment) the value of the named counter on the element to/by the specified <integer>. If the <integer> is omitted, it defaults to 1 (for counter-increment) or 0 (for counter-set). If there is not currently a counter of the given name on the element, the element instantiates a new counter of the given name with a starting value of 0 before setting or incrementing its value.",
240
+ "type": "value",
241
+ "value": "<counter-name> <integer>?"
242
+ },
243
+ {
244
+ "name": "list-item",
245
+ "prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
246
+ "type": "value",
247
+ "value": "list-item"
248
+ }
249
+ ],
122
250
  "styleDeclaration": [
123
251
  "counter-set",
124
252
  "counterSet"
125
253
  ]
126
254
  }
127
- },
128
- "atrules": {},
129
- "valuespaces": {
130
- "<counter-name>": {
131
- "prose": "Counters are referred to in CSS syntax using the <counter-name> type, which represents their name as a <custom-ident>. A <counter-name> name cannot match the keyword none; such an identifier is invalid as a <counter-name>."
255
+ ],
256
+ "atrules": [],
257
+ "selectors": [],
258
+ "values": [
259
+ {
260
+ "name": "<counter-name>",
261
+ "prose": "Counters are referred to in CSS syntax using the <counter-name> type, which represents their name as a <custom-ident>. A <counter-name> name cannot match the keyword none; such an identifier is invalid as a <counter-name>.",
262
+ "type": "type"
132
263
  },
133
- "<reversed-counter-name>": {
264
+ {
265
+ "name": "<reversed-counter-name>",
266
+ "type": "type",
134
267
  "value": "reversed( <counter-name> )"
135
268
  },
136
- "<counter>": {
269
+ {
270
+ "name": "<counter>",
271
+ "type": "type",
137
272
  "value": "<counter()> | <counters()>"
138
273
  },
139
- "<counter()>": {
140
- "value": "counter( <counter-name>, <counter-style>? )"
274
+ {
275
+ "name": "counter()",
276
+ "type": "function",
277
+ "value": "counter( <counter-name>, <counter-style>? )",
278
+ "values": [
279
+ {
280
+ "name": "list-item",
281
+ "prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
282
+ "type": "value",
283
+ "value": "list-item"
284
+ }
285
+ ]
141
286
  },
142
- "<counters()>": {
143
- "value": "counters( <counter-name>, <string>, <counter-style>? )"
287
+ {
288
+ "name": "counters()",
289
+ "type": "function",
290
+ "value": "counters( <counter-name>, <string>, <counter-style>? )",
291
+ "values": [
292
+ {
293
+ "name": "list-item",
294
+ "prose": "In addition to any explicitly defined counters that authors write in their styles, list items automatically increment a special list-item counter, which is used when generating the default marker string on list items (see list-style-type).",
295
+ "type": "value",
296
+ "value": "list-item"
297
+ }
298
+ ]
144
299
  }
145
- }
300
+ ]
146
301
  }