@webref/css 6.9.0 → 6.9.2

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.
package/css-lists.json CHANGED
@@ -266,13 +266,9 @@
266
266
  "type": "type",
267
267
  "value": "reversed( <counter-name> )"
268
268
  },
269
- {
270
- "name": "<counter>",
271
- "type": "type",
272
- "value": "<counter()> | <counters()>"
273
- },
274
269
  {
275
270
  "name": "counter()",
271
+ "prose": "Counters have no visible effect by themselves, but their values can be used with the counter() and counters() functions, whose used values represent counter values as strings or images. They are defined as follows:",
276
272
  "type": "function",
277
273
  "value": "counter( <counter-name>, <counter-style>? )",
278
274
  "values": [
@@ -286,6 +282,7 @@
286
282
  },
287
283
  {
288
284
  "name": "counters()",
285
+ "prose": "Counters have no visible effect by themselves, but their values can be used with the counter() and counters() functions, whose used values represent counter values as strings or images. They are defined as follows:",
289
286
  "type": "function",
290
287
  "value": "counters( <counter-name>, <string>, <counter-style>? )",
291
288
  "values": [
@@ -296,6 +293,11 @@
296
293
  "value": "list-item"
297
294
  }
298
295
  ]
296
+ },
297
+ {
298
+ "name": "<counter>",
299
+ "type": "type",
300
+ "value": "<counter()> | <counters()>"
299
301
  }
300
302
  ]
301
303
  }
@@ -139,7 +139,7 @@
139
139
  },
140
140
  {
141
141
  "name": "clear",
142
- "value": "inline-start | inline-end | block-start | block-end | left | right | top | bottom | none",
142
+ "value": "inline-start | inline-end | block-start | block-end | left | right | top | bottom | both-inline | both-block | both | none",
143
143
  "initial": "none",
144
144
  "appliesTo": "block-level elements, floats, regions, pages",
145
145
  "inherited": "no",
package/css-position.json CHANGED
@@ -336,7 +336,7 @@
336
336
  },
337
337
  {
338
338
  "name": "inset-block",
339
- "value": "<top>{1,2}",
339
+ "value": "<'top'>{1,2}",
340
340
  "initial": "auto",
341
341
  "appliesTo": "positioned elements",
342
342
  "inherited": "no",
@@ -371,7 +371,7 @@
371
371
  },
372
372
  {
373
373
  "name": "inset-inline",
374
- "value": "<top>{1,2}",
374
+ "value": "<'top'>{1,2}",
375
375
  "initial": "auto",
376
376
  "appliesTo": "positioned elements",
377
377
  "inherited": "no",
@@ -406,7 +406,7 @@
406
406
  },
407
407
  {
408
408
  "name": "inset",
409
- "value": "<top>{1,4}",
409
+ "value": "<'top'>{1,4}",
410
410
  "initial": "auto",
411
411
  "appliesTo": "positioned elements",
412
412
  "inherited": "no",
package/css-shapes-2.json CHANGED
@@ -53,14 +53,22 @@
53
53
  },
54
54
  {
55
55
  "name": "shape-padding",
56
- "value": "<length>",
57
- "initial": "none",
56
+ "value": "<length-percentage [0,∞]>",
57
+ "initial": "0",
58
58
  "appliesTo": "block-level elements",
59
59
  "inherited": "no",
60
- "percentages": "n/a",
61
- "computedValue": "the absolute length",
60
+ "percentages": "refer to the inline size of the containing block",
61
+ "computedValue": "computed <length-percentage> value",
62
62
  "canonicalOrder": "per grammar",
63
63
  "animationType": "by computed value",
64
+ "values": [
65
+ {
66
+ "name": "<length-percentage [0,∞]>",
67
+ "prose": "Sets the padding of the shape to the specified value.",
68
+ "type": "value",
69
+ "value": "<length-percentage [0,∞]>"
70
+ }
71
+ ],
64
72
  "styleDeclaration": [
65
73
  "shape-padding",
66
74
  "shapePadding"
package/css-shapes.json CHANGED
@@ -151,7 +151,7 @@
151
151
  {
152
152
  "name": "<shape-box>",
153
153
  "type": "type",
154
- "value": "<box> | margin-box",
154
+ "value": "<visual-box> | margin-box",
155
155
  "values": [
156
156
  {
157
157
  "name": "margin-box",
package/css-speech.json CHANGED
@@ -647,7 +647,7 @@
647
647
  },
648
648
  {
649
649
  "name": "voice-pitch",
650
- "value": "<frequency> && absolute | [[x-low | low | medium | high | x-high] || [<frequency> | <semitones> | <percentage>]]",
650
+ "value": "<frequency [0Hz,∞]> && absolute | [[x-low | low | medium | high | x-high] || [<frequency> | <semitones> | <percentage>]]",
651
651
  "initial": "medium",
652
652
  "appliesTo": "all elements",
653
653
  "inherited": "yes",
@@ -721,7 +721,7 @@
721
721
  },
722
722
  {
723
723
  "name": "voice-range",
724
- "value": "<frequency> && absolute | [[x-low | low | medium | high | x-high] || [<frequency> | <semitones> | <percentage>]]",
724
+ "value": "<frequency [0Hz,∞]> && absolute | [[x-low | low | medium | high | x-high] || [<frequency> | <semitones> | <percentage>]]",
725
725
  "initial": "medium",
726
726
  "appliesTo": "all elements",
727
727
  "inherited": "yes",
package/css-text-4.json CHANGED
@@ -1160,7 +1160,7 @@
1160
1160
  },
1161
1161
  {
1162
1162
  "name": "space-first",
1163
- "prose": "Set fullwidth opening punctuation with full-width glyphs (spaced) on the first line the block container. Otherwise as trim-auto (unless allow-end is also specified).",
1163
+ "prose": "Set fullwidth opening punctuation with full-width glyphs (spaced) on the first line the block container and each line after a forced line break. Otherwise as trim-auto (unless allow-end is also specified).",
1164
1164
  "type": "value",
1165
1165
  "value": "space-first"
1166
1166
  },
package/css-ui.json CHANGED
@@ -113,7 +113,7 @@
113
113
  "values": [
114
114
  {
115
115
  "name": "<url-set>",
116
- "prose": "<url-set> is a limited version of image-set(), where only <url> and <url-set> can be used in the part of the <image-set-option> sub-production which would normally allow <image>.",
116
+ "prose": "<url-set> is a limited version of image-set(), where the <image> sub-production is restricted to <url> only.",
117
117
  "type": "type"
118
118
  },
119
119
  {
package/css-values-5.json CHANGED
@@ -212,6 +212,11 @@
212
212
  "prose": "The toggle() expression allows descendant elements to cycle over a list of values instead of inheriting the same value.",
213
213
  "type": "function"
214
214
  },
215
+ {
216
+ "name": "<toggle()>",
217
+ "type": "type",
218
+ "value": "toggle( <whole-value> [ ';' <whole-value> ]+ )"
219
+ },
215
220
  {
216
221
  "name": "attr()",
217
222
  "prose": "The attr() function substitutes the value of an attribute on an element into a property, similar to how the var() function substitutes a custom property value into a function.",
@@ -311,7 +316,7 @@
311
316
  "name": "random()",
312
317
  "prose": "The random() function is a math function that represents a random value between a minimum and maximum value, drawn from a uniform distribution, optionally limiting the possible values to a step between those limits:",
313
318
  "type": "function",
314
- "value": "random( <random-caching-options>? , <calc-sum>, <calc-sum>, [by <calc-sum>]? );"
319
+ "value": "random( <random-caching-options>? , <calc-sum>, <calc-sum>, [by <calc-sum>]? )"
315
320
  },
316
321
  {
317
322
  "name": "<random-caching-options>",
@@ -322,7 +327,7 @@
322
327
  "name": "random-item()",
323
328
  "prose": "The random-item() function resolves to a random item from among its list of items.",
324
329
  "type": "function",
325
- "value": "random-item( <random-caching-options> ';' <any-value> [ ';' <any-value> ]* )"
330
+ "value": "random-item( <random-caching-options> ';' <declaration-value>? [ ';' <declaration-value>? ]* )"
326
331
  },
327
332
  {
328
333
  "name": "sibling-count()",
package/css-values.json CHANGED
@@ -179,97 +179,97 @@
179
179
  },
180
180
  {
181
181
  "name": "vw",
182
- "prose": "Equal to 1% of the width of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
182
+ "prose": "Equal to 1% of the width of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
183
183
  "type": "value",
184
184
  "value": "vw"
185
185
  },
186
186
  {
187
187
  "name": "svw",
188
- "prose": "Equal to 1% of the width of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
188
+ "prose": "Equal to 1% of the width of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
189
189
  "type": "value",
190
190
  "value": "svw"
191
191
  },
192
192
  {
193
193
  "name": "lvw",
194
- "prose": "Equal to 1% of the width of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
194
+ "prose": "Equal to 1% of the width of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
195
195
  "type": "value",
196
196
  "value": "lvw"
197
197
  },
198
198
  {
199
199
  "name": "dvw",
200
- "prose": "Equal to 1% of the width of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
200
+ "prose": "Equal to 1% of the width of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively. In the example below, if the width of the viewport is 200mm, the font size of h1 elements will be 16mm (i.e. (8×200mm)/100). h1 { font-size: 8vw }",
201
201
  "type": "value",
202
202
  "value": "dvw"
203
203
  },
204
204
  {
205
205
  "name": "vh",
206
- "prose": "Equal to 1% of the height of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
206
+ "prose": "Equal to 1% of the height of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
207
207
  "type": "value",
208
208
  "value": "vh"
209
209
  },
210
210
  {
211
211
  "name": "svh",
212
- "prose": "Equal to 1% of the height of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
212
+ "prose": "Equal to 1% of the height of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
213
213
  "type": "value",
214
214
  "value": "svh"
215
215
  },
216
216
  {
217
217
  "name": "lvh",
218
- "prose": "Equal to 1% of the height of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
218
+ "prose": "Equal to 1% of the height of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
219
219
  "type": "value",
220
220
  "value": "lvh"
221
221
  },
222
222
  {
223
223
  "name": "dvh",
224
- "prose": "Equal to 1% of the height of the UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
224
+ "prose": "Equal to 1% of the height of the large viewport size, small viewport size, large viewport size, and dynamic viewport size, respectively.",
225
225
  "type": "value",
226
226
  "value": "dvh"
227
227
  },
228
228
  {
229
229
  "name": "vi",
230
- "prose": "Equal to 1% of the size of the large viewport size, small viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
230
+ "prose": "Equal to 1% of the size of the large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
231
231
  "type": "value",
232
232
  "value": "vi"
233
233
  },
234
234
  {
235
235
  "name": "svi",
236
- "prose": "Equal to 1% of the size of the large viewport size, small viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
236
+ "prose": "Equal to 1% of the size of the large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
237
237
  "type": "value",
238
238
  "value": "svi"
239
239
  },
240
240
  {
241
241
  "name": "lvi",
242
- "prose": "Equal to 1% of the size of the large viewport size, small viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
242
+ "prose": "Equal to 1% of the size of the large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
243
243
  "type": "value",
244
244
  "value": "lvi"
245
245
  },
246
246
  {
247
247
  "name": "dvi",
248
- "prose": "Equal to 1% of the size of the large viewport size, small viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
248
+ "prose": "Equal to 1% of the size of the large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s inline axis.",
249
249
  "type": "value",
250
250
  "value": "dvi"
251
251
  },
252
252
  {
253
253
  "name": "vb",
254
- "prose": "Equal to 1% of the size of the initial containing block UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
254
+ "prose": "Equal to 1% of the size of the initial containing block large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
255
255
  "type": "value",
256
256
  "value": "vb"
257
257
  },
258
258
  {
259
259
  "name": "svb",
260
- "prose": "Equal to 1% of the size of the initial containing block UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
260
+ "prose": "Equal to 1% of the size of the initial containing block large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
261
261
  "type": "value",
262
262
  "value": "svb"
263
263
  },
264
264
  {
265
265
  "name": "lvb",
266
- "prose": "Equal to 1% of the size of the initial containing block UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
266
+ "prose": "Equal to 1% of the size of the initial containing block large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
267
267
  "type": "value",
268
268
  "value": "lvb"
269
269
  },
270
270
  {
271
271
  "name": "dvb",
272
- "prose": "Equal to 1% of the size of the initial containing block UA-default viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
272
+ "prose": "Equal to 1% of the size of the initial containing block large viewport size, small viewport size, large viewport size, and dynamic viewport size (respectively) in the box’s block axis.",
273
273
  "type": "value",
274
274
  "value": "dvb"
275
275
  },
@@ -462,7 +462,7 @@
462
462
  "name": "<position>",
463
463
  "prose": "The <position> value specifies the position of a object area (e.g. background image) inside a positioning area (e.g. background positioning area). It is interpreted as specified for background-position. [CSS3-BACKGROUND]",
464
464
  "type": "type",
465
- "value": "[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"
465
+ "value": "[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right ] && [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"
466
466
  },
467
467
  {
468
468
  "name": "calc()",
@@ -31,8 +31,8 @@
31
31
  {
32
32
  "name": "type",
33
33
  "for": "@view-transition",
34
- "value": "<custom-ident>*",
35
- "initial": "an empty list"
34
+ "value": "none | <custom-ident>*",
35
+ "initial": "none"
36
36
  }
37
37
  ],
38
38
  "value": "@view-transition { <declaration-rule-list> }"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/css",
3
3
  "description": "CSS definitions of the web platform",
4
- "version": "6.9.0",
4
+ "version": "6.9.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/selectors.json CHANGED
@@ -374,7 +374,7 @@
374
374
  {
375
375
  "name": "<combinator>",
376
376
  "type": "type",
377
- "value": "'>' | '+' | '~' | [ '|' '|' ]"
377
+ "value": "'>' | '+' | '~'"
378
378
  },
379
379
  {
380
380
  "name": "<wq-name>",