@webref/css 6.24.1 → 6.24.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-mixins.json +3 -2
- package/css-ui.json +2 -2
- package/css-values-5.json +42 -15
- package/css-values.json +1 -1
- package/css-view-transitions.json +1 -1
- package/package.json +2 -2
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> }
|
|
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",
|
package/css-ui.json
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"values": [
|
|
127
127
|
{
|
|
128
128
|
"name": "<cursor-image>",
|
|
129
|
-
"value": "[ <url> | <url-set> ]
|
|
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> ]
|
|
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-
|
|
685
|
+
"value": "random( <random-cache-key>? , <calc-sum>, <calc-sum>, <calc-sum>? )"
|
|
686
686
|
},
|
|
687
687
|
{
|
|
688
|
-
"name": "<random-
|
|
689
|
-
"href": "https://drafts.csswg.org/css-values-5/#typedef-random-
|
|
688
|
+
"name": "<random-cache-key>",
|
|
689
|
+
"href": "https://drafts.csswg.org/css-values-5/#typedef-random-cache-key",
|
|
690
690
|
"type": "type",
|
|
691
|
-
"value": "
|
|
691
|
+
"value": "auto | <random-name> | fixed <number [0,1]>",
|
|
692
692
|
"values": [
|
|
693
693
|
{
|
|
694
694
|
"name": "auto",
|
|
695
|
-
"prose": "
|
|
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": "<
|
|
702
|
-
"prose": "
|
|
703
|
-
"href": "https://drafts.csswg.org/css-values-5/#valdef-random-
|
|
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": "<
|
|
705
|
+
"value": "<random-name>"
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
|
-
"name": "element
|
|
709
|
-
"prose": "
|
|
710
|
-
"href": "https://drafts.csswg.org/css-values-5/#valdef-random-element
|
|
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
|
|
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
|
|
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-
|
|
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 |
|
|
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.
|
|
4
|
+
"version": "6.24.2",
|
|
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
|
|
15
|
+
"css-tree": "^3.2.1"
|
|
16
16
|
}
|
|
17
17
|
}
|