-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-color-adjust.json
151 lines (151 loc) · 6.9 KB
/
css-color-adjust.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"spec": {
"title": "CSS Color Adjustment Module Level 1",
"url": "https://drafts.csswg.org/css-color-adjust-1/"
},
"properties": [
{
"name": "color-scheme",
"href": "https://drafts.csswg.org/css-color-adjust-1/#propdef-color-scheme",
"value": "normal | [ light | dark | <custom-ident> ]+ && only?",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "the keyword normal, or an ordered list of specified color scheme keywords",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "Indicates that the element supports the page’s supported color schemes, if they are set, or that it supports no color schemes at all otherwise.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-color-scheme-normal",
"type": "value",
"value": "normal"
},
{
"name": "light",
"prose": "Indicates that the element supports a light color scheme.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-color-scheme-light",
"type": "value",
"value": "light"
},
{
"name": "dark",
"prose": "Indicates that the element supports a dark color scheme.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-color-scheme-dark",
"type": "value",
"value": "dark"
},
{
"name": "only",
"prose": "Forbids the user agent from overriding the color scheme for the element.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-color-scheme-only",
"type": "value",
"value": "only"
},
{
"name": "<custom-ident>",
"prose": "<custom-ident> values are meaningless, and exist only for future compatibility, so that future added color schemes do not invalidate the color-scheme declaration in legacy user agents. User agents must not interpret any <custom-ident> values as having a meaning; any additional recognized color schemes must be explicitly added to this property’s grammar. The normal, light, dark, and only keywords are not valid <custom-ident>s in this property.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-color-scheme-custom-ident",
"type": "value",
"value": "<custom-ident>"
}
],
"styleDeclaration": [
"color-scheme",
"colorScheme"
]
},
{
"name": "forced-color-adjust",
"href": "https://drafts.csswg.org/css-color-adjust-1/#propdef-forced-color-adjust",
"value": "auto | none | preserve-parent-color",
"initial": "auto",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "auto",
"prose": "The element’s colors are automatically adjusted by the UA in forced colors mode.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-forced-color-adjust-auto",
"type": "value",
"value": "auto"
},
{
"name": "none",
"prose": "The element’s colors are not automatically adjusted by the UA in forced colors mode. Authors should only use this value when they are themselves adjusting the colors to support the user’s color and contrast needs and need to make changes to the UA’s default adjustments to provide a more appropriate user experience for those elements.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-forced-color-adjust-none",
"type": "value",
"value": "none"
},
{
"name": "preserve-parent-color",
"prose": "In forced colors mode, if the color property inherits from its parent (i.e. there is no cascaded value or the cascaded value is currentColor, inherit, or another keyword that inherits from the parent), then it computes to the used color of its parent’s color value. In all other respects, behaves the same as none.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-forced-color-adjust-preserve-parent-color",
"type": "value",
"value": "preserve-parent-color"
}
],
"styleDeclaration": [
"forced-color-adjust",
"forcedColorAdjust"
]
},
{
"name": "print-color-adjust",
"href": "https://drafts.csswg.org/css-color-adjust-1/#propdef-print-color-adjust",
"value": "economy | exact",
"initial": "economy",
"appliesTo": "all elements",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "economy",
"prose": "The user agent should make adjustments to the page’s styling as it deems necessary and prudent for the output device. For example, if the document is being printed, a user agent might ignore any backgrounds and adjust text color to be sufficiently dark, to minimize ink usage.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-print-color-adjust-economy",
"type": "value",
"value": "economy"
},
{
"name": "exact",
"prose": "This value indicates that the page is using color and styling on the specified element in a way which is important and significant, and which should not be tweaked or changed except at the user’s request. For example, a mapping website offering printed directions might \"zebra-stripe\" the steps in the directions, alternating between white and light gray backgrounds. Losing this zebra-striping and having a pure-white background would make the directions harder to read with a quick glance when distracted in a car.",
"href": "https://drafts.csswg.org/css-color-adjust-1/#valdef-print-color-adjust-exact",
"type": "value",
"value": "exact"
}
],
"styleDeclaration": [
"print-color-adjust",
"printColorAdjust"
]
},
{
"name": "color-adjust",
"href": "https://drafts.csswg.org/css-color-adjust-1/#propdef-color-adjust",
"value": "<'print-color-adjust'>",
"initial": "see individual properties",
"appliesTo": "see individual properties",
"inherited": "see individual properties",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"styleDeclaration": [
"color-adjust",
"colorAdjust"
]
}
],
"atrules": [],
"selectors": [],
"values": []
}