forked from w3c/webref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
css-color-5.json
40 lines (40 loc) · 1.38 KB
/
css-color-5.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
{
"spec": {
"title": "CSS Color Module Level 5",
"url": "https://www.w3.org/TR/css-color-5/"
},
"properties": {},
"descriptors": {},
"valuespaces": {
"<color-space>": {
"value": "srgb | hsl | hwb | xyz | lab | lch"
},
"<color-mix()>": {
"value": "color-mix( in <color-space> , [ <color> && <percentage [0,100]>? ]#{2} <hue-adjuster>?)"
},
"<hue-adjuster>": {
"value": "shorter | longer | increasing | decreasing | specified"
},
"<color-contrast()>": {
"value": "color-contrast( <color> vs <color>#{2,} [ to [<number> | AA | AA-large | AAA | AAA-large]]? )"
},
"<rgb()>": {
"value": "rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( [ from <color> ]? [ <number> | <percentage> ]{3} [ / <alpha-value> ]? )"
},
"<hsl()>": {
"value": "hsl([from <color>]? <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
},
"<hwb()>": {
"value": "hwb([from <color>]? <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
},
"<lab()>": {
"value": "lab([from <color>]? <percentage> <number> <number> [ / <alpha-value> ]? )"
},
"<lch()>": {
"value": "lch([from <color>]? <percentage> <number> <hue> [ / <alpha-value> ]? )"
},
"<color()>": {
"value": "color( [from <color>]? <colorspace-params> [ / <alpha-value> ]? )"
}
}
}