forked from w3c/webref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
css-color.json
97 lines (97 loc) · 2.69 KB
/
css-color.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"spec": {
"title": "CSS Color Module Level 4",
"url": "https://www.w3.org/TR/css-color-4/"
},
"properties": {
"color": {
"name": "color",
"value": "<color>",
"initial": "CanvasText",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "computed color, see resolving color values",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"styleDeclaration": [
"color"
]
},
"opacity": {
"name": "opacity",
"value": "<alpha-value>",
"initial": "1",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "map to the range [0,1]",
"computedValue": "specified number, clamped to the range [0,1]",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"styleDeclaration": [
"opacity"
]
}
},
"descriptors": {
"src": [
{
"name": "src",
"for": "@color-profile",
"value": "<url>",
"initial": "n/a"
}
],
"rendering-intent": [
{
"name": "rendering-intent",
"for": "@color-profile",
"value": "relative-colorimetric | absolute-colorimetric | perceptual | saturation",
"initial": "relative-colorimetric"
}
],
"components": [
{
"name": "components",
"for": "@color-profile",
"value": "<ident>#",
"initial": "n/a"
}
]
},
"valuespaces": {
"<color>": {
"value": "<hex-color> | <named-color> | currentcolor | transparent | <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <color()> | <device-cmyk()> | <system-color>"
},
"<hue>": {
"value": "<number> | <angle>"
},
"<rgb()>": {
"value": "rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? )"
},
"<alpha-value>": {
"value": "<number> | <percentage>"
},
"<hsl()>": {
"value": "hsl( <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
},
"<hwb()>": {
"value": "hwb( <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
},
"<lab()>": {
"value": "lab( <percentage> <number> <number> [ / <alpha-value> ]? )"
},
"<lch()>": {
"value": "lch( <percentage> <number> <hue> [ / <alpha-value> ]? )"
},
"<color()>": {
"value": "color( [<ident> | <dashed-ident>] [ <number-percentage>+ ] [ / <alpha-value> ]? )"
},
"<device-cmyk()>": {
"value": "device-cmyk( <cmyk-component>{4} [ / <alpha-value> ]? , <color>? )"
},
"<cmyk-component>": {
"value": "<number> | <percentage>"
}
}
}