forked from w3c/webref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter-effects.json
135 lines (135 loc) · 4.08 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
{
"spec": {
"title": "Filter Effects Module Level 1",
"url": "https://www.w3.org/TR/filter-effects-1/"
},
"properties": {
"filter": {
"name": "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",
"media": "visual",
"animatable": "See prose in Animation of Filters.",
"styleDeclaration": [
"filter"
]
},
"flood-color": {
"name": "flood-color",
"value": "<color>",
"initial": "black",
"appliesTo": "feFlood and feDropShadow elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"animatable": "as by computed value",
"styleDeclaration": [
"flood-color",
"floodColor"
]
},
"flood-opacity": {
"name": "flood-opacity",
"value": "<alpha-value>",
"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",
"media": "visual",
"animatable": "by computed value",
"styleDeclaration": [
"flood-opacity",
"floodOpacity"
]
},
"color-interpolation-filters": {
"name": "color-interpolation-filters",
"value": "auto | sRGB | linearRGB",
"initial": "linearRGB",
"appliesTo": "All filter primitives",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"animatable": "no",
"styleDeclaration": [
"color-interpolation-filters",
"colorInterpolationFilters"
]
},
"lighting-color": {
"name": "lighting-color",
"value": "<color>",
"initial": "white",
"appliesTo": "feDiffuseLighting and feSpecularLighting elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"animatable": "as by computed value",
"styleDeclaration": [
"lighting-color",
"lightingColor"
]
}
},
"descriptors": {},
"valuespaces": {
"<filter-value-list>": {
"value": "[ <filter-function> | <url> ]+"
},
"<filter-function>": {
"value": "<blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <sepia()> | <saturate()>"
},
"<blur()>": {
"value": "blur( <length>? )"
},
"<brightness()>": {
"value": "brightness( <number-percentage>? )"
},
"<contrast()>": {
"value": "contrast( <number-percentage>? )"
},
"<drop-shadow()>": {
"value": "drop-shadow( <color>? && <length>{2,3} )"
},
"<grayscale()>": {
"value": "grayscale( <number-percentage>? )"
},
"<hue-rotate()>": {
"value": "hue-rotate( [ <angle> | <zero> ]? )"
},
"<invert()>": {
"value": "invert( <number-percentage>? )"
},
"<opacity()>": {
"value": "opacity( <number-percentage>? )"
},
"<saturate()>": {
"value": "saturate( <number-percentage>? )"
},
"<sepia()>": {
"value": "sepia( <number-percentage>? )"
},
"<filter()>": {
"value": "filter( [ <image> | <string> ], <filter-value-list> )"
},
"<number-optional-number>": {
"value": "<number> <number>?"
},
"<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."
}
}
}