@webref/css 2.1.3 → 2.1.4
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-color-5.json +11 -14
- package/css-color.json +12 -0
- package/css-images-4.json +10 -1
- package/package.json +1 -1
package/css-color-5.json
CHANGED
|
@@ -6,38 +6,35 @@
|
|
|
6
6
|
"properties": {},
|
|
7
7
|
"descriptors": {},
|
|
8
8
|
"valuespaces": {
|
|
9
|
-
"<color-space>": {
|
|
10
|
-
"value": "srgb | hsl | hwb | xyz | lab | lch | oklab | oklch"
|
|
11
|
-
},
|
|
12
9
|
"<color-mix()>": {
|
|
13
|
-
"value": "color-mix(
|
|
14
|
-
},
|
|
15
|
-
"<hue-adjuster>": {
|
|
16
|
-
"value": "shorter | longer | increasing | decreasing | specified"
|
|
10
|
+
"value": "color-mix( <color-interpolation-method> , [ <color> && <percentage [0,100]>? ]#{2})"
|
|
17
11
|
},
|
|
18
12
|
"<color-contrast()>": {
|
|
19
13
|
"value": "color-contrast( <color> vs <color>#{2,} [ to [<number> | AA | AA-large | AAA | AAA-large]]? )"
|
|
20
14
|
},
|
|
21
15
|
"<rgb()>": {
|
|
22
|
-
"value": "rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]?
|
|
16
|
+
"value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / <alpha-value> ]? )"
|
|
17
|
+
},
|
|
18
|
+
"<alpha-value>": {
|
|
19
|
+
"value": "<number> | <percentage>"
|
|
23
20
|
},
|
|
24
21
|
"<hsl()>": {
|
|
25
|
-
"value": "hsl([from <color>]? <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
|
|
22
|
+
"value": "hsl(([from <color>]? [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
|
|
26
23
|
},
|
|
27
24
|
"<hwb()>": {
|
|
28
|
-
"value": "hwb([from <color>]? <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
|
|
25
|
+
"value": "hwb([from <color>]? [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
|
|
29
26
|
},
|
|
30
27
|
"<lab()>": {
|
|
31
|
-
"value": "lab([from <color>]? <percentage> <number> <number> [ / <alpha-value> ]? )"
|
|
28
|
+
"value": "lab([from <color>]? [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
|
|
32
29
|
},
|
|
33
30
|
"<oklab()>": {
|
|
34
|
-
"value": "oklab([from <color>]? <percentage> <number> <number> [ / <alpha-value> ]? )"
|
|
31
|
+
"value": "oklab([from <color>]? [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
|
|
35
32
|
},
|
|
36
33
|
"<lch()>": {
|
|
37
|
-
"value": "lch([from <color>]? <percentage> <number> <hue> [ / <alpha-value> ]? )"
|
|
34
|
+
"value": "lch([from <color>]? [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
|
|
38
35
|
},
|
|
39
36
|
"<oklch()>": {
|
|
40
|
-
"value": "oklch([from <color>]? <percentage> <number> <hue> [ / <alpha-value> ]? )"
|
|
37
|
+
"value": "oklch([from <color>]? [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
|
|
41
38
|
},
|
|
42
39
|
"<color()>": {
|
|
43
40
|
"value": "color( [from <color>]? <colorspace-params> [ / <alpha-value> ]? )"
|
package/css-color.json
CHANGED
|
@@ -101,6 +101,18 @@
|
|
|
101
101
|
},
|
|
102
102
|
"<cmyk-component>": {
|
|
103
103
|
"value": "<number> | <percentage>"
|
|
104
|
+
},
|
|
105
|
+
"<rectangular-color-space>": {
|
|
106
|
+
"value": "srgb | lab | oklab | xyz | xyz-d50 | xyz-d65"
|
|
107
|
+
},
|
|
108
|
+
"<polar-color-space>": {
|
|
109
|
+
"value": "hsl | hwb | lch | oklch"
|
|
110
|
+
},
|
|
111
|
+
"<hue-interpolation-method>": {
|
|
112
|
+
"value": "[ shorter | longer | increasing | decreasing | specified ] hue"
|
|
113
|
+
},
|
|
114
|
+
"<color-interpolation-method>": {
|
|
115
|
+
"value": "in [ <rectangular-color-space> | <polar-color-space> <hue-interpolation-method>? ]"
|
|
104
116
|
}
|
|
105
117
|
}
|
|
106
118
|
}
|
package/css-images-4.json
CHANGED
|
@@ -67,8 +67,17 @@
|
|
|
67
67
|
"<gradient>": {
|
|
68
68
|
"value": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> ]"
|
|
69
69
|
},
|
|
70
|
+
"<linear-gradient()>": {
|
|
71
|
+
"value": "linear-gradient( [ <angle> | to <side-or-corner> ]? || <color-interpolation-method>, <color-stop-list> )"
|
|
72
|
+
},
|
|
73
|
+
"<side-or-corner>": {
|
|
74
|
+
"value": "[left | right] || [top | bottom]"
|
|
75
|
+
},
|
|
76
|
+
"<radial-gradient()>": {
|
|
77
|
+
"value": "radial-gradient( [[ <ending-shape> || <size> ]? [ at <position> ]? ] || <color-interpolation-method>, <color-stop-list> )"
|
|
78
|
+
},
|
|
70
79
|
"<conic-gradient()>": {
|
|
71
|
-
"value": "conic-gradient( [ from <angle> ]? [ at <position> ]
|
|
80
|
+
"value": "conic-gradient( [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method>, <angular-color-stop-list> )"
|
|
72
81
|
},
|
|
73
82
|
"<color-stop-list>": {
|
|
74
83
|
"value": "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#"
|