@webref/css 3.0.1 → 3.0.5
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/compositing.json +5 -5
- package/css-color-5.json +1 -1
- package/css-color.json +18 -0
- package/css-fonts.json +1 -1
- package/index.js +3 -3
- package/package.json +1 -1
package/compositing.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"mix-blend-mode": {
|
|
8
8
|
"name": "mix-blend-mode",
|
|
9
|
-
"value": "<blend-mode>",
|
|
9
|
+
"value": "<blend-mode> | plus-darker | plus-lighter",
|
|
10
10
|
"initial": "normal",
|
|
11
11
|
"appliesTo": "All elements. In SVG, it applies to container elements, graphics elements and graphics referencing elements. [SVG11]",
|
|
12
12
|
"inherited": "no",
|
|
13
13
|
"percentages": "N/A",
|
|
14
|
-
"media": "visual",
|
|
15
14
|
"computedValue": "as specified",
|
|
16
15
|
"canonicalOrder": "per grammar",
|
|
16
|
+
"media": "visual",
|
|
17
17
|
"animatable": "no",
|
|
18
18
|
"styleDeclaration": [
|
|
19
19
|
"mix-blend-mode",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"appliesTo": "All elements. In SVG, it applies to container elements, graphics elements and graphics referencing elements. [SVG11]",
|
|
28
28
|
"inherited": "no",
|
|
29
29
|
"percentages": "N/A",
|
|
30
|
-
"media": "visual",
|
|
31
30
|
"computedValue": "as specified",
|
|
32
31
|
"canonicalOrder": "per grammar",
|
|
32
|
+
"media": "visual",
|
|
33
33
|
"animatable": "no",
|
|
34
34
|
"styleDeclaration": [
|
|
35
35
|
"isolation"
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
},
|
|
38
38
|
"background-blend-mode": {
|
|
39
39
|
"name": "background-blend-mode",
|
|
40
|
-
"value": "<blend-mode>#",
|
|
40
|
+
"value": "<mix-blend-mode>#",
|
|
41
41
|
"initial": "normal",
|
|
42
42
|
"appliesTo": "All HTML elements",
|
|
43
43
|
"inherited": "no",
|
|
44
44
|
"percentages": "N/A",
|
|
45
|
-
"media": "visual",
|
|
46
45
|
"computedValue": "as specified",
|
|
47
46
|
"canonicalOrder": "per grammar",
|
|
47
|
+
"media": "visual",
|
|
48
48
|
"animatable": "no",
|
|
49
49
|
"styleDeclaration": [
|
|
50
50
|
"background-blend-mode",
|
package/css-color-5.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"value": "color-contrast( <color> vs <color>#{2,} [ to [<number> | AA | AA-large | AAA | AAA-large]]? )"
|
|
39
39
|
},
|
|
40
40
|
"<rgb()>": {
|
|
41
|
-
"value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / <alpha-value> ]? )"
|
|
41
|
+
"value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
|
|
42
42
|
},
|
|
43
43
|
"<alpha-value>": {
|
|
44
44
|
"value": "<number> | <percentage>"
|
package/css-color.json
CHANGED
|
@@ -71,6 +71,24 @@
|
|
|
71
71
|
"<color()>": {
|
|
72
72
|
"value": "color( <colorspace-params> [ / <alpha-value> ]? )"
|
|
73
73
|
},
|
|
74
|
+
"<colorspace-params>": {
|
|
75
|
+
"value": "[ <predefined-rgb-params> | <xyz-params>]"
|
|
76
|
+
},
|
|
77
|
+
"<predefined-rgb-params>": {
|
|
78
|
+
"value": "<predefined-rgb> [ <number> | <percentage> | none ]{3}"
|
|
79
|
+
},
|
|
80
|
+
"<predefined-rgb>": {
|
|
81
|
+
"value": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020"
|
|
82
|
+
},
|
|
83
|
+
"<xyz-params>": {
|
|
84
|
+
"value": "<xyz-space> [ <number> | none ]{3}"
|
|
85
|
+
},
|
|
86
|
+
"<xyz-space>": {
|
|
87
|
+
"value": "xyz | xyz-d50 | xyz-d65"
|
|
88
|
+
},
|
|
89
|
+
"<color-space>": {
|
|
90
|
+
"value": "<rectangular-color-space> | <polar-color-space>"
|
|
91
|
+
},
|
|
74
92
|
"<rectangular-color-space>": {
|
|
75
93
|
"value": "srgb | srgb-linear | lab | oklab | xyz | xyz-d50 | xyz-d65"
|
|
76
94
|
},
|
package/css-fonts.json
CHANGED
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const fs = require('fs').promises;
|
|
2
2
|
const path = require('path');
|
|
3
3
|
|
|
4
|
-
async function listAll() {
|
|
4
|
+
async function listAll({folder = __dirname} = {}) {
|
|
5
5
|
const all = {};
|
|
6
|
-
const files = await fs.readdir(
|
|
6
|
+
const files = await fs.readdir(folder);
|
|
7
7
|
for (const f of files) {
|
|
8
8
|
if (f.endsWith('.json') && f !== 'package.json') {
|
|
9
|
-
const text = await fs.readFile(path.join(
|
|
9
|
+
const text = await fs.readFile(path.join(folder, f), 'utf8');
|
|
10
10
|
all[path.basename(f, '.json')] = JSON.parse(text);
|
|
11
11
|
}
|
|
12
12
|
}
|