-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathfilter-effects.json
220 lines (220 loc) · 7.87 KB
/
filter-effects.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
"spec": {
"title": "Filter Effects Module Level 1",
"url": "https://drafts.fxtf.org/filter-effects-1/"
},
"properties": [
{
"name": "filter",
"href": "https://drafts.fxtf.org/filter-effects-1/#propdef-filter",
"value": "none | <filter-value-list>",
"initial": "none",
"appliesTo": "All elements. In SVG, it applies to container elements without the defs element, all graphics elements and the use element.",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "See prose in Animation of Filters.",
"media": "visual",
"values": [
{
"name": "<url>",
"prose": "A filter reference to a filter element. For example url(commonfilters.svg#filter). If the filter references a non-existent object or the referenced object is not a filter element, then the whole filter chain is ignored. No filter is applied to the object.",
"href": "https://drafts.fxtf.org/filter-effects-1/#typedef-filter-url",
"type": "type"
},
{
"name": "blur()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-blur",
"type": "function",
"value": "blur( <length>? )"
},
{
"name": "brightness()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-brightness",
"type": "function",
"value": "brightness( [ <number> | <percentage> ]? )"
},
{
"name": "contrast()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-contrast",
"type": "function",
"value": "contrast( [ <number> | <percentage> ]? )"
},
{
"name": "drop-shadow()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-drop-shadow",
"type": "function",
"value": "drop-shadow( [ <color>? && <length>{2,3} ] )"
},
{
"name": "grayscale()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-grayscale",
"type": "function",
"value": "grayscale( [ <number> | <percentage> ]? )"
},
{
"name": "hue-rotate()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-hue-rotate",
"type": "function",
"value": "hue-rotate( [ <angle> | <zero> ]? )"
},
{
"name": "invert()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-invert",
"type": "function",
"value": "invert( [ <number> | <percentage> ]? )"
},
{
"name": "opacity()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-opacity",
"type": "function",
"value": "opacity( [ <number> | <percentage> ]? )"
},
{
"name": "saturate()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-saturate",
"type": "function",
"value": "saturate( [ <number> | <percentage> ]? )"
},
{
"name": "sepia()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-sepia",
"type": "function",
"value": "sepia( [ <number> | <percentage> ]? )"
}
],
"styleDeclaration": [
"filter"
]
},
{
"name": "flood-color",
"href": "https://drafts.fxtf.org/filter-effects-1/#propdef-flood-color",
"value": "<color>",
"initial": "black",
"appliesTo": "feFlood and feDropShadow elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"media": "visual",
"styleDeclaration": [
"flood-color",
"floodColor"
]
},
{
"name": "flood-opacity",
"href": "https://drafts.fxtf.org/filter-effects-1/#propdef-flood-opacity",
"value": "<'opacity'>",
"initial": "1",
"appliesTo": "feFlood and feDropShadow elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "the specified value converted to a number, clamped to the range [0,1]",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"media": "visual",
"styleDeclaration": [
"flood-opacity",
"floodOpacity"
]
},
{
"name": "color-interpolation-filters",
"href": "https://drafts.fxtf.org/filter-effects-1/#propdef-color-interpolation-filters",
"value": "auto | sRGB | linearRGB",
"initial": "linearRGB",
"appliesTo": "All filter primitives",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"values": [
{
"name": "auto",
"prose": "Indicates that the user agent can choose either the sRGB or linearRGB spaces for filter effects color operations. This option indicates that the author doesn’t require that color operations occur in a particular color space.",
"href": "https://drafts.fxtf.org/filter-effects-1/#valdef-color-interpolation-filters-auto",
"type": "value",
"value": "auto"
},
{
"name": "sRGB",
"prose": "Indicates that filter effects color operations should occur in the gamma-encoded sRGB color space.",
"href": "https://drafts.fxtf.org/filter-effects-1/#valdef-color-interpolation-filters-srgb",
"type": "value",
"value": "sRGB"
},
{
"name": "linearRGB",
"prose": "Indicates that filter effects color operations should occur in the linear-light sRGB color space.",
"href": "https://drafts.fxtf.org/filter-effects-1/#valdef-color-interpolation-filters-linearrgb",
"type": "value",
"value": "linearRGB"
}
],
"styleDeclaration": [
"color-interpolation-filters",
"colorInterpolationFilters"
]
},
{
"name": "lighting-color",
"href": "https://drafts.fxtf.org/filter-effects-1/#propdef-lighting-color",
"value": "<color>",
"initial": "white",
"appliesTo": "feDiffuseLighting and feSpecularLighting elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"media": "visual",
"styleDeclaration": [
"lighting-color",
"lightingColor"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<filter-value-list>",
"href": "https://drafts.fxtf.org/filter-effects-1/#typedef-filter-value-list",
"type": "type",
"value": "[ <filter-function> | <url> ]+"
},
{
"name": "<filter-function>",
"href": "https://drafts.fxtf.org/filter-effects-1/#typedef-filter-function",
"type": "type",
"value": "<blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <sepia()> | <saturate()>"
},
{
"name": "<number-optional-number>",
"value": "<number> <number>?",
"href": "https://drafts.fxtf.org/filter-effects-1/#typedef-number-optional-number",
"type": "type"
},
{
"name": "filter()",
"href": "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter",
"type": "function",
"value": "filter( [ <image> | <string> ], <filter-value-list> )"
}
],
"warnings": [
{
"msg": "Dangling value",
"name": "<filter-primitive-reference>",
"href": "https://drafts.fxtf.org/filter-effects-1/#typedef-result-filter-primitive-reference",
"type": "type",
"for": "result"
}
]
}