forked from w3c/webref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
css-masking.json
356 lines (356 loc) · 12.2 KB
/
css-masking.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
{
"spec": {
"title": "CSS Masking Module Level 1",
"url": "https://www.w3.org/TR/css-masking-1/"
},
"properties": {
"clip-path": {
"name": "clip-path",
"value": "<clip-source> | [ <basic-shape> || <geometry-box> ] | none",
"initial": "none",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified, but with <url> values made absolute",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"media": "visual",
"styleDeclaration": [
"clip-path",
"clipPath"
]
},
"clip-rule": {
"name": "clip-rule",
"value": "nonzero | evenodd",
"initial": "nonzero",
"appliesTo": "Applies to SVG graphics elements",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"clip-rule",
"clipRule"
]
},
"mask-image": {
"name": "mask-image",
"value": "<mask-reference>#",
"initial": "none",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "the keyword none, a computed <image>, or a computed <url>",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-image",
"maskImage"
]
},
"mask-mode": {
"name": "mask-mode",
"value": "<masking-mode>#",
"initial": "match-source",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-mode",
"maskMode"
]
},
"mask-repeat": {
"name": "mask-repeat",
"value": "<repeat-style>#",
"initial": "repeat",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "Consists of: two keywords, one per dimension",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-repeat",
"maskRepeat"
]
},
"mask-position": {
"name": "mask-position",
"value": "<position>#",
"initial": "0% 0%",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "refer to size of mask painting area minus size of mask layer image; see text background-position [CSS3BG]",
"computedValue": "Consisting of: two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentage.",
"canonicalOrder": "per grammar",
"animationType": "repeatable list",
"media": "visual",
"styleDeclaration": [
"mask-position",
"maskPosition"
]
},
"mask-clip": {
"name": "mask-clip",
"value": "[ <geometry-box> | no-clip ]#",
"initial": "border-box",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-clip",
"maskClip"
]
},
"mask-origin": {
"name": "mask-origin",
"value": "<geometry-box>#",
"initial": "border-box",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-origin",
"maskOrigin"
]
},
"mask-size": {
"name": "mask-size",
"value": "<bg-size>#",
"initial": "auto",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified, but with lengths made absolute",
"canonicalOrder": "per grammar",
"animationType": "repeatable list",
"media": "visual",
"styleDeclaration": [
"mask-size",
"maskSize"
]
},
"mask-composite": {
"name": "mask-composite",
"value": "<compositing-operator>#",
"initial": "add",
"appliesTo": "All elements. In SVG, it applies to container elements without the defs element and all graphics elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-composite",
"maskComposite"
]
},
"mask": {
"name": "mask",
"value": "<mask-layer>#",
"initial": "see individual properties",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"media": "visual",
"styleDeclaration": [
"mask"
]
},
"mask-border-source": {
"name": "mask-border-source",
"value": "none | <image>",
"initial": "none",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "they keyword none or the computed <image>",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-border-source",
"maskBorderSource"
]
},
"mask-border-mode": {
"name": "mask-border-mode",
"value": "luminance | alpha",
"initial": "alpha",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-border-mode",
"maskBorderMode"
]
},
"mask-border-slice": {
"name": "mask-border-slice",
"value": "<number-percentage>{1,4} fill?",
"initial": "0",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "refer to size of the mask border image",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-border-slice",
"maskBorderSlice"
]
},
"mask-border-width": {
"name": "mask-border-width",
"value": "[ <length-percentage> | <number> | auto ]{1,4}",
"initial": "auto",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "relative to width/height of the mask border image area",
"computedValue": "all <length>s made absolute, otherwise as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-border-width",
"maskBorderWidth"
]
},
"mask-border-outset": {
"name": "mask-border-outset",
"value": "[ <length> | <number> ]{1,4}",
"initial": "0",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "all <length>s made absolute, otherwise as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-border-outset",
"maskBorderOutset"
]
},
"mask-border-repeat": {
"name": "mask-border-repeat",
"value": "[ stretch | repeat | round | space ]{1,2}",
"initial": "stretch",
"appliesTo": "All elements. In SVG, it applies to container elements excluding the defs element, all graphics elements and the use element",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-border-repeat",
"maskBorderRepeat"
]
},
"mask-border": {
"name": "mask-border",
"value": "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",
"initial": "See individual properties",
"appliesTo": "See individual properties",
"inherited": "no",
"percentages": "n/a",
"computedValue": "See individual properties",
"canonicalOrder": "per grammar",
"animationType": "See individual properties",
"media": "visual",
"styleDeclaration": [
"mask-border",
"maskBorder"
]
},
"mask-type": {
"name": "mask-type",
"value": "luminance | alpha",
"initial": "luminance",
"appliesTo": "mask elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"styleDeclaration": [
"mask-type",
"maskType"
]
},
"clip": {
"name": "clip",
"value": "rect() | auto",
"initial": "auto",
"appliesTo": "Absolutely positioned elements. In SVG, it applies to elements which establish a new viewport, pattern elements and mask elements.",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"media": "visual",
"styleDeclaration": [
"clip"
]
}
},
"descriptors": {},
"valuespaces": {
"<clip-source>": {
"value": "<url>"
},
"<geometry-box>": {
"value": "<shape-box> | fill-box | stroke-box | view-box"
},
"<mask-reference>": {
"value": "none | <image> | <mask-source>"
},
"<mask-source>": {
"value": "<url>"
},
"<masking-mode>": {
"value": "alpha | luminance | match-source"
},
"<compositing-operator>": {
"value": "add | subtract | intersect | exclude"
},
"<mask-layer>": {
"value": "<mask-reference> || <position> [ / <bg-size> ]? ||<repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"
},
"<rect()>": {
"value": "rect( <top>, <right>, <bottom>, <left> )"
},
"<url>": {
"prose": "A URL reference to a mask element (for example url(commonmasks.svg#mask)) or to a CSS image."
}
}
}