@webref/css 6.24.1 → 6.25.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.
package/compat.json CHANGED
@@ -238,6 +238,10 @@
238
238
  "animation-fill-mode",
239
239
  "animation-play-state",
240
240
  "animation-timeline"
241
+ ],
242
+ "resetLonghands": [
243
+ "animation-range",
244
+ "animation-trigger"
241
245
  ]
242
246
  },
243
247
  {
@@ -501,6 +505,9 @@
501
505
  "mask-clip",
502
506
  "mask-composite",
503
507
  "mask-mode"
508
+ ],
509
+ "resetLonghands": [
510
+ "mask-border"
504
511
  ]
505
512
  },
506
513
  {
@@ -282,6 +282,10 @@
282
282
  "animation-fill-mode",
283
283
  "animation-play-state",
284
284
  "animation-timeline"
285
+ ],
286
+ "resetLonghands": [
287
+ "animation-range",
288
+ "animation-trigger"
285
289
  ]
286
290
  }
287
291
  ],
@@ -597,6 +597,9 @@
597
597
  "background-origin",
598
598
  "background-clip",
599
599
  "background-color"
600
+ ],
601
+ "resetLonghands": [
602
+ "background-blend-mode"
600
603
  ]
601
604
  }
602
605
  ],
@@ -362,6 +362,9 @@
362
362
  "background-origin",
363
363
  "background-clip",
364
364
  "background-color"
365
+ ],
366
+ "resetLonghands": [
367
+ "background-blend-mode"
365
368
  ]
366
369
  }
367
370
  ],
package/css-borders.json CHANGED
@@ -926,6 +926,9 @@
926
926
  "border-width",
927
927
  "border-style",
928
928
  "border-color"
929
+ ],
930
+ "resetLonghands": [
931
+ "border-image"
929
932
  ]
930
933
  },
931
934
  {
package/css-color-5.json CHANGED
@@ -412,7 +412,7 @@
412
412
  },
413
413
  {
414
414
  "name": "light-dark()",
415
- "value": "light-dark( <color>, <color> )",
415
+ "value": "light-dark( [<color>, <color>] | [<image>, <image>])",
416
416
  "href": "https://drafts.csswg.org/css-color-5/#funcdef-light-dark",
417
417
  "type": "function"
418
418
  },
package/css-env.json CHANGED
@@ -104,6 +104,12 @@
104
104
  "value": "preferred-text-scale"
105
105
  }
106
106
  ]
107
+ },
108
+ {
109
+ "name": "<env-args>",
110
+ "href": "https://drafts.csswg.org/css-env-1/#typedef-env-args",
111
+ "type": "type",
112
+ "value": "env( <declaration-value>, <declaration-value>? )"
107
113
  }
108
114
  ]
109
115
  }
package/css-fonts.json CHANGED
@@ -335,6 +335,14 @@
335
335
  "font-size",
336
336
  "line-height",
337
337
  "font-family"
338
+ ],
339
+ "resetLonghands": [
340
+ "font-feature-settings",
341
+ "font-kerning",
342
+ "font-language-override",
343
+ "font-optical-sizing",
344
+ "font-size-adjust",
345
+ "font-variation-settings"
338
346
  ]
339
347
  },
340
348
  {
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "name": "image-animation",
9
9
  "href": "https://drafts.csswg.org/css-image-animation-1/#propdef-image-animation",
10
- "value": "normal | paused | running",
10
+ "value": "normal | paused | stopped | running",
11
11
  "initial": "normal",
12
12
  "appliesTo": "content images and elements with decorative images",
13
13
  "inherited": "yes",
@@ -23,16 +23,23 @@
23
23
  "type": "value",
24
24
  "value": "normal"
25
25
  },
26
+ {
27
+ "name": "stopped",
28
+ "prose": "Animated images are rendered as if they were static images: the user agent must not run any animation it contains. If the image contains a cover frame, that is what the user agent must use; otherwise, it must display the image as it would be in the initial state of the animation.",
29
+ "href": "https://drafts.csswg.org/css-image-animation-1/#valdef-image-animation-stopped",
30
+ "type": "value",
31
+ "value": "stopped"
32
+ },
26
33
  {
27
34
  "name": "paused",
28
- "prose": "Animated images are rendered as if they were static images: the user agent must not run any animation it contains.",
35
+ "prose": "The user agent must not run the animation contained in the Animated images, and must continue to display the image as it was when this value started to apply, effectively pausing the animation. If the animation had not been playing prior to this value being applied, the behavior is the same as stopped.",
29
36
  "href": "https://drafts.csswg.org/css-image-animation-1/#valdef-image-animation-paused",
30
37
  "type": "value",
31
38
  "value": "paused"
32
39
  },
33
40
  {
34
41
  "name": "running",
35
- "prose": "Like normal, the animation of animated images is run normally, as determined by the image format and the host language, However, animation timelines are scoped per element: among the content image and decorative images of a single element, any animated images with the same absolute URL, the same image data, and with an image-animation computed value of running must be rendered synchronized to the same timeline as a group, distinct from the timeline of images in other elements, with the timeline starting at the time of the least recent addition to the group.",
42
+ "prose": "Like normal, the animation of animated images is run normally, as determined by the image format and the host language. However, animation timelines are scoped per element: among the content image and decorative images of a single element, any animated images with the same absolute URL, the same image data, and with an image-animation computed value of running must be rendered synchronized to the same timeline as a group, distinct from the timeline of images in other elements. If images are added to the element while the computed value is running, the timeline starts at the time of the least recent addition to the group. If the element is created or made visible after having previously been set to display: none, with images already added and with image-animation already set to running, the timeline starts when the element is included in the layout. If this property is switched to running from another value, the beginnig of this timeline is set so that the animation continues from the state that was displayed at the timem of the switch.",
36
43
  "href": "https://drafts.csswg.org/css-image-animation-1/#valdef-image-animation-running",
37
44
  "type": "value",
38
45
  "value": "running"
package/css-masking.json CHANGED
@@ -394,6 +394,9 @@
394
394
  "mask-clip",
395
395
  "mask-composite",
396
396
  "mask-mode"
397
+ ],
398
+ "resetLonghands": [
399
+ "mask-border"
397
400
  ]
398
401
  },
399
402
  {
package/css-mixins.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "name": "@mixin",
32
32
  "href": "https://drafts.csswg.org/css-mixins-1/#at-ruledef-mixin",
33
33
  "descriptors": [],
34
- "value": "@mixin <function-token> <function-parameter>#? ) { <declaration-rule-list> } | @mixin <dashed-ident> { <declaration-rule-list> }"
34
+ "value": "@mixin <function-token> <function-parameter>#? ) { <declaration-rule-list> }"
35
35
  },
36
36
  {
37
37
  "name": "@result",
@@ -48,7 +48,8 @@
48
48
  {
49
49
  "name": "@macro",
50
50
  "href": "https://drafts.csswg.org/css-mixins-1/#macro-rule",
51
- "descriptors": []
51
+ "descriptors": [],
52
+ "value": "@macro <dashed-ident> { <declaration-rule-list> }"
52
53
  },
53
54
  {
54
55
  "name": "@apply",
@@ -39,12 +39,12 @@
39
39
  {
40
40
  "name": "scroll-marker-group",
41
41
  "href": "https://drafts.csswg.org/css-overflow-5/#propdef-scroll-marker-group",
42
- "value": "none | before | after",
42
+ "value": "none | [ [ before | after ] || [ links | tabs ] ]",
43
43
  "initial": "none",
44
44
  "appliesTo": "scroll containers",
45
45
  "inherited": "no",
46
46
  "percentages": "n/a",
47
- "computedValue": "specified value",
47
+ "computedValue": "specified keyword(s)",
48
48
  "canonicalOrder": "per grammar",
49
49
  "animationType": "discrete",
50
50
  "values": [
@@ -68,6 +68,20 @@
68
68
  "href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-marker-group-after",
69
69
  "type": "value",
70
70
  "value": "after"
71
+ },
72
+ {
73
+ "name": "links",
74
+ "prose": "The generated ::scroll-marker-group operates in \"links\" mode, functioning like a navigation list. This is the default mode if omitted.",
75
+ "href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-marker-group-links",
76
+ "type": "value",
77
+ "value": "links"
78
+ },
79
+ {
80
+ "name": "tabs",
81
+ "prose": "The generated ::scroll-marker-group operates in \"tabs\" mode, functioning like a tablist.",
82
+ "href": "https://drafts.csswg.org/css-overflow-5/#valdef-scroll-marker-group-tabs",
83
+ "type": "value",
84
+ "value": "tabs"
71
85
  }
72
86
  ],
73
87
  "styleDeclaration": [
package/css-ui.json CHANGED
@@ -126,7 +126,7 @@
126
126
  "values": [
127
127
  {
128
128
  "name": "<cursor-image>",
129
- "value": "[ <url> | <url-set> ] [<number>{2}]?",
129
+ "value": "[ <url> | <url-set> ] <number>{2}?",
130
130
  "href": "https://drafts.csswg.org/css-ui-4/#valdef-cursor-cursor-image",
131
131
  "type": "value"
132
132
  },
@@ -134,7 +134,7 @@
134
134
  "name": "<cursor-image>",
135
135
  "href": "https://drafts.csswg.org/css-ui-4/#typedef-cursor-cursor-image",
136
136
  "type": "type",
137
- "value": "[ <url> | <url-set> ] [<number>{2}]?"
137
+ "value": "[ <url> | <url-set> ] <number>{2}?"
138
138
  },
139
139
  {
140
140
  "name": "<url-set>",
package/css-values-5.json CHANGED
@@ -682,50 +682,77 @@
682
682
  "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:",
683
683
  "href": "https://drafts.csswg.org/css-values-5/#funcdef-random",
684
684
  "type": "function",
685
- "value": "random( <random-value-sharing>? , <calc-sum>, <calc-sum>, <calc-sum>? )"
685
+ "value": "random( <random-cache-key>? , <calc-sum>, <calc-sum>, <calc-sum>? )"
686
686
  },
687
687
  {
688
- "name": "<random-value-sharing>",
689
- "href": "https://drafts.csswg.org/css-values-5/#typedef-random-value-sharing",
688
+ "name": "<random-cache-key>",
689
+ "href": "https://drafts.csswg.org/css-values-5/#typedef-random-cache-key",
690
690
  "type": "type",
691
- "value": "[ [ auto | <dashed-ident> ] || element-shared ] | fixed <number [0,1]>",
691
+ "value": "auto | <random-name> | fixed <number [0,1]>",
692
692
  "values": [
693
693
  {
694
694
  "name": "auto",
695
- "prose": "Each random function in an element’s styles will use a distinct random base value. (But see the note below for a small wrinkle about this.) If neither auto nor <dashed-ident> are specified, it behaves as auto.",
695
+ "prose": "The random function is roughly \"as random as possible\": every usage in a property, between different properties, and between different elements will get a different random cache key. (See below for exact details.) If the <random-cache-key> is omitted, it behaves as auto.",
696
696
  "href": "https://drafts.csswg.org/css-values-5/#valdef-random-auto",
697
697
  "type": "value",
698
698
  "value": "auto"
699
699
  },
700
700
  {
701
- "name": "<dashed-ident>",
702
- "prose": "Each random function in an element’s styles with the same <dashed-ident> will share the same random base value; ones with different <dashed-ident>s will use distinct random base values.",
703
- "href": "https://drafts.csswg.org/css-values-5/#valdef-random-dashed-ident",
701
+ "name": "<random-name>",
702
+ "prose": "The <random-name> specifies the random cache key directly. It always contains a <dashed-ident>, specifying the name, and can optionally contain additional dynamic information: element adds an element identifier to the random cache key, so different elements will get different random values property adds the property name the random function is being used on to the random cache key, so different properties will get different random values property index adds the property name and the index of the random function among all the random functions used in the same property value to the random cache key, so multiple uses of a random function in the same property will get different random values.",
703
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-random-random-name",
704
704
  "type": "value",
705
- "value": "<dashed-ident>"
705
+ "value": "<random-name>"
706
706
  },
707
707
  {
708
- "name": "element-shared",
709
- "prose": "If element-shared is omitted, random functions on different elements will use distinct random base values. If specified, random functions on different elements will share the same random base value if they have the same <dashed-ident> (if specified) or if they’re used in the same style in the same way (if not). (Again, see the note below for a small wrinkle about this.)",
710
- "href": "https://drafts.csswg.org/css-values-5/#valdef-random-element-shared",
708
+ "name": "element",
709
+ "prose": "element adds an element identifier to the random cache key, so different elements will get different random values",
710
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-random-element",
711
711
  "type": "value",
712
- "value": "element-shared"
712
+ "value": "element"
713
+ },
714
+ {
715
+ "name": "property",
716
+ "prose": "property adds the property name the random function is being used on to the random cache key, so different properties will get different random values",
717
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-random-property",
718
+ "type": "value",
719
+ "value": "property"
720
+ },
721
+ {
722
+ "name": "index",
723
+ "prose": "property index adds the property name and the index of the random function among all the random functions used in the same property value to the random cache key, so multiple uses of a random function in the same property will get different random values.",
724
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-random-index",
725
+ "type": "value",
726
+ "value": "index"
727
+ },
728
+ {
729
+ "name": "property index",
730
+ "prose": "property index adds the property name and the index of the random function among all the random functions used in the same property value to the random cache key, so multiple uses of a random function in the same property will get different random values.",
731
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-random-index",
732
+ "type": "value",
733
+ "value": "property index"
713
734
  },
714
735
  {
715
736
  "name": "<number>",
716
- "prose": "If fixed <number> is specified, the <number> is used as the random function’s random base value, rather than allowing the UA to generate a random base value and controlling how it’s shared. While 1 is technically allowed as a valid value (because CSS grammars can only express closed ranges), the random base value is clamped to the highest representable value less than 1, so random base values remain in the half-open range `[0, 1)`.",
737
+ "prose": "If fixed <number> is specified, the random function bypasses the random cache key entirely, and just uses the <number> as its random base value directly. While 1 is technically allowed as a valid value (because CSS grammars can only express closed ranges), the random base value is clamped to the highest representable value less than 1, so random base values remain in the half-open range `[0, 1)`.",
717
738
  "href": "https://drafts.csswg.org/css-values-5/#valdef-random-fixed",
718
739
  "type": "value",
719
740
  "value": "<number>"
720
741
  }
721
742
  ]
722
743
  },
744
+ {
745
+ "name": "<random-name>",
746
+ "href": "https://drafts.csswg.org/css-values-5/#typedef-random-name",
747
+ "type": "type",
748
+ "value": "<dashed-ident> [ element | property index? ]?"
749
+ },
723
750
  {
724
751
  "name": "random-item()",
725
752
  "prose": "The random-item() function resolves to a random item from among its list of items.",
726
753
  "href": "https://drafts.csswg.org/css-values-5/#funcdef-random-item",
727
754
  "type": "function",
728
- "value": "random-item( <random-value-sharing> , [ <declaration-value>? ]# )"
755
+ "value": "random-item( <random-cache-key> , [ <declaration-value>? ]# )"
729
756
  },
730
757
  {
731
758
  "name": "<random-item-args>",
package/css-values.json CHANGED
@@ -713,7 +713,7 @@
713
713
  "prose": "If A is exactly equal to an integer multiple of B, round() resolves to A exactly (preserving whether A is 0⁻ or 0⁺, if relevant). Otherwise, there are two integer multiples of B that are potentially \"closest\" to A, lower B which is closer to −∞ and upper B which is closer to +∞. The following <rounding-strategy>s dictate how to choose between them:",
714
714
  "href": "https://drafts.csswg.org/css-values-4/#typedef-rounding-strategy",
715
715
  "type": "type",
716
- "value": "nearest | up | down | to-zero",
716
+ "value": "nearest | up | down | to-zero | line-width",
717
717
  "values": [
718
718
  {
719
719
  "name": "nearest",
@@ -39,7 +39,7 @@
39
39
  {
40
40
  "name": "view-transition-scope",
41
41
  "href": "https://drafts.csswg.org/css-view-transitions-2/#propdef-view-transition-scope",
42
- "value": "none | auto",
42
+ "value": "none | all",
43
43
  "initial": "none",
44
44
  "appliesTo": "all elements",
45
45
  "inherited": "no",
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.24.1",
4
+ "version": "6.25.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -12,6 +12,6 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "peerDependencies": {
15
- "css-tree": "^3.1.0"
15
+ "css-tree": "^3.2.1"
16
16
  }
17
17
  }
@@ -348,7 +348,7 @@
348
348
  "appliesTo": "all elements",
349
349
  "inherited": "no",
350
350
  "percentages": "n/a",
351
- "computedValue": "the keyword none or a list of CSS identifiers",
351
+ "computedValue": "the keyword none, the keyword all, or a list of CSS identifiers",
352
352
  "canonicalOrder": "per grammar",
353
353
  "animationType": "not animatable",
354
354
  "values": [
@@ -361,14 +361,14 @@
361
361
  },
362
362
  {
363
363
  "name": "all",
364
- "prose": "Declares the names of all timelines defined by descendants—​whose scope is not already explicitly declared by a descendant using timeline-scope—​to be in scope for this element and its descendants.",
364
+ "prose": "Specifies that all timeline names defined by this element or its flat tree descendants—​whose scope is not already limited by a descendant using timeline-scope—​to be in scope only for this element’s flat tree descendants; and limits descendants to only match timeline names to elements within this subtree.",
365
365
  "href": "https://drafts.csswg.org/scroll-animations-1/#valdef-timeline-scope-all",
366
366
  "type": "value",
367
367
  "value": "all"
368
368
  },
369
369
  {
370
370
  "name": "<dashed-ident>",
371
- "prose": "Declares the name of a matching named timeline defined by a descendant—​whose scope is not already explicitly declared by a descendant using timeline-scope—​to be in scope for this element and its descendants. If no such timeline exists, or if more than one such timeline exists, instead declares an inactive timeline with the specified name.",
371
+ "prose": "Specifies that a matching timeline name defined by this element or its flat tree descendants—​whose scope is not already limited by a descendant using timeline-scope—​to be in scope only for this element’s flat tree descendants; and limits descendants to only match timeline names to elements within this subtree.",
372
372
  "href": "https://drafts.csswg.org/scroll-animations-1/#valdef-timeline-scope-dashed-ident",
373
373
  "type": "value",
374
374
  "value": "<dashed-ident>"