-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathcss-masking.json
717 lines (717 loc) · 31 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
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
{
"spec": {
"title": "CSS Masking Module Level 1",
"url": "https://drafts.fxtf.org/css-masking-1/"
},
"properties": [
{
"name": "clip-path",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "fill-box",
"prose": "Uses the object bounding box as reference box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-clip-path-fill-box",
"type": "value",
"value": "fill-box"
},
{
"name": "stroke-box",
"prose": "Uses the stroke bounding box as reference box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-clip-path-stroke-box",
"type": "value",
"value": "stroke-box"
},
{
"name": "view-box",
"prose": "Uses the nearest SVG viewport as reference box. If a viewBox attribute is specified for the SVG viewport creating element: The reference box is positioned at the origin of the coordinate system established by the viewBox attribute. The dimension of the reference box is set to the width and height values of the viewBox attribute.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-clip-path-view-box",
"type": "value",
"value": "view-box"
}
],
"styleDeclaration": [
"clip-path",
"clipPath"
]
},
{
"name": "clip-rule",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "nonzero",
"prose": "See description of fill-rule property [SVG11].",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-clip-rule-nonzero",
"type": "value",
"value": "nonzero"
},
{
"name": "evenodd",
"prose": "See description of fill-rule property [SVG11].",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-clip-rule-evenodd",
"type": "value",
"value": "evenodd"
}
],
"styleDeclaration": [
"clip-rule",
"clipRule"
]
},
{
"name": "mask-image",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "<url>",
"prose": "A URL reference to a mask element (for example url(commonmasks.svg#mask)) or to a CSS image.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-image-url",
"type": "value",
"value": "<url>"
}
],
"styleDeclaration": [
"mask-image",
"maskImage"
]
},
{
"name": "mask-mode",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "alpha",
"prose": "A value of alpha indicates that the alpha values of the mask layer image should be used as the mask values. See Calculating mask values.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-mode-alpha",
"type": "value",
"value": "alpha"
},
{
"name": "luminance",
"prose": "A value of luminance indicates that the luminance values of the mask layer image should be used as the mask values. See Calculating mask values.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-mode-luminance",
"type": "value",
"value": "luminance"
},
{
"name": "match-source",
"prose": "If the <mask-reference> of the mask-image property is of type <mask-source> the value specified by the referenced mask element’s mask-type property must be used. If the <mask-reference> of the mask-image property is of type <image> the alpha values of the mask layer image should be used as the mask values.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-mode-match-source",
"type": "value",
"value": "match-source"
}
],
"styleDeclaration": [
"mask-mode",
"maskMode"
]
},
{
"name": "mask-repeat",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-position",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-clip",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-mask-clip",
"value": "[ <coord-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",
"values": [
{
"name": "content-box",
"prose": "The painted content is restricted to (clipped to) the content box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-clip-content-box",
"type": "value",
"value": "content-box"
},
{
"name": "padding-box",
"prose": "The painted content is restricted to (clipped to) the padding box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-clip-padding-box",
"type": "value",
"value": "padding-box"
},
{
"name": "border-box",
"prose": "The painted content is restricted to (clipped to) the border box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-clip-border-box",
"type": "value",
"value": "border-box"
},
{
"name": "fill-box",
"prose": "The painted content is restricted to (clipped to) the object bounding box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-clip-fill-box",
"type": "value",
"value": "fill-box"
},
{
"name": "stroke-box",
"prose": "The painted content is restricted to (clipped to) the stroke bounding box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-clip-stroke-box",
"type": "value",
"value": "stroke-box"
},
{
"name": "view-box",
"prose": "Uses the nearest SVG viewport as reference box. If a viewBox attribute is specified for the SVG viewport creating element: The reference box is positioned at the origin of the coordinate system established by the viewBox attribute. The dimension of the reference box is set to the width and height values of the viewBox attribute.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-clip-view-box",
"type": "value",
"value": "view-box"
},
{
"name": "no-clip",
"prose": "The painted content is not restricted (not clipped).",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-clip-no-clip",
"type": "value",
"value": "no-clip"
}
],
"styleDeclaration": [
"mask-clip",
"maskClip"
]
},
{
"name": "mask-origin",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-mask-origin",
"value": "<coord-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",
"values": [
{
"name": "content-box",
"prose": "The position is relative to the content box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-origin-content-box",
"type": "value",
"value": "content-box"
},
{
"name": "padding-box",
"prose": "The position is relative to the padding box. (For single boxes 0 0 is the upper left corner of the padding edge, 100% 100% is the lower right corner.)",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-origin-padding-box",
"type": "value",
"value": "padding-box"
},
{
"name": "border-box",
"prose": "The position is relative to the border box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-origin-border-box",
"type": "value",
"value": "border-box"
},
{
"name": "fill-box",
"prose": "The position is relative to the object bounding box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-origin-fill-box",
"type": "value",
"value": "fill-box"
},
{
"name": "stroke-box",
"prose": "The position is relative to the stroke bounding box.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-origin-stroke-box",
"type": "value",
"value": "stroke-box"
},
{
"name": "view-box",
"prose": "Uses the nearest SVG viewport as reference box. If a viewBox attribute is specified for the SVG viewport creating element: The reference box is positioned at the origin of the coordinate system established by the viewBox attribute. The dimension of the reference box is set to the width and height values of the viewBox attribute.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-origin-view-box",
"type": "value",
"value": "view-box"
}
],
"styleDeclaration": [
"mask-origin",
"maskOrigin"
]
},
{
"name": "mask-size",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-composite",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "add",
"prose": "The source is placed over the destination. (See Porter-Duff compositing operator source over for more details.)",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-composite-add",
"type": "value",
"value": "add"
},
{
"name": "subtract",
"prose": "The source is placed, where it falls outside of the destination. (See Porter-Duff compositing operator source out for more details.)",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-composite-subtract",
"type": "value",
"value": "subtract"
},
{
"name": "intersect",
"prose": "The parts of source that overlap the destination, replace the destination. (See Porter-Duff compositing operator source in .)",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-composite-intersect",
"type": "value",
"value": "intersect"
},
{
"name": "exclude",
"prose": "The non-overlapping regions of source and destination are combined. (See Porter-Duff compositing operator XOR.)",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-composite-exclude",
"type": "value",
"value": "exclude"
}
],
"styleDeclaration": [
"mask-composite",
"maskComposite"
]
},
{
"name": "mask",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-border-source",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-border-mode",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "alpha",
"prose": "A value of alpha indicates that the alpha values of the mask border image should be used as the mask values. See Calculating mask values.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-border-mode-alpha",
"type": "value",
"value": "alpha"
},
{
"name": "luminance",
"prose": "A value of luminance indicates that the luminance values of the mask border image should be used as the mask values. See Calculating mask values.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-border-mode-luminance",
"type": "value",
"value": "luminance"
}
],
"styleDeclaration": [
"mask-border-mode",
"maskBorderMode"
]
},
{
"name": "mask-border-slice",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "fill",
"prose": "This property specifies inward offsets from the top, right, bottom, and left edges of the mask border image, dividing it into nine regions: four corners, four edges and a middle. The middle image part is discarded and treated as fully opaque white (the content covered by the middle part is not masked and shines through) unless the fill keyword is present.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-border-slice-fill",
"type": "value",
"value": "fill"
}
],
"styleDeclaration": [
"mask-border-slice",
"maskBorderSlice"
]
},
{
"name": "mask-border-width",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-border-outset",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-border-repeat",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-border",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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"
]
},
{
"name": "mask-type",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "luminance",
"prose": "Indicates that the luminance values of the mask should be used.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-type-luminance",
"type": "value",
"value": "luminance"
},
{
"name": "alpha",
"prose": "Indicates that the alpha values of the mask should be used.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-mask-type-alpha",
"type": "value",
"value": "alpha"
}
],
"styleDeclaration": [
"mask-type",
"maskType"
]
},
{
"name": "clip",
"href": "https://drafts.fxtf.org/css-masking-1/#propdef-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",
"values": [
{
"name": "rect()",
"value": "rect( <top>, <right>, <bottom>, <left> )",
"href": "https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",
"type": "function"
},
{
"name": "<top>",
"prose": "<top>, <right>, <bottom>, and <left> may either have a <length> value or auto. Negative lengths are permitted. The value auto means that a given edge of the clipping region will be the same as the edge of the element’s generated border box (i.e., auto means the same as 0 for <top> and <left>, the same as the used value of the height plus the sum of vertical padding and border widths for <bottom>, and the same as the used value of the width plus the sum of the horizontal padding and border widths for <right>, such that four auto values result in the clipping region being the same as the element’s border box).",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-clip-top",
"type": "type"
},
{
"name": "<right>",
"prose": "<top>, <right>, <bottom>, and <left> may either have a <length> value or auto. Negative lengths are permitted. The value auto means that a given edge of the clipping region will be the same as the edge of the element’s generated border box (i.e., auto means the same as 0 for <top> and <left>, the same as the used value of the height plus the sum of vertical padding and border widths for <bottom>, and the same as the used value of the width plus the sum of the horizontal padding and border widths for <right>, such that four auto values result in the clipping region being the same as the element’s border box).",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-clip-right",
"type": "type"
},
{
"name": "<bottom>",
"prose": "<top>, <right>, <bottom>, and <left> may either have a <length> value or auto. Negative lengths are permitted. The value auto means that a given edge of the clipping region will be the same as the edge of the element’s generated border box (i.e., auto means the same as 0 for <top> and <left>, the same as the used value of the height plus the sum of vertical padding and border widths for <bottom>, and the same as the used value of the width plus the sum of the horizontal padding and border widths for <right>, such that four auto values result in the clipping region being the same as the element’s border box).",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-clip-bottom",
"type": "type"
},
{
"name": "<left>",
"prose": "<top>, <right>, <bottom>, and <left> may either have a <length> value or auto. Negative lengths are permitted. The value auto means that a given edge of the clipping region will be the same as the edge of the element’s generated border box (i.e., auto means the same as 0 for <top> and <left>, the same as the used value of the height plus the sum of vertical padding and border widths for <bottom>, and the same as the used value of the width plus the sum of the horizontal padding and border widths for <right>, such that four auto values result in the clipping region being the same as the element’s border box).",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-clip-left",
"type": "type"
}
],
"styleDeclaration": [
"clip"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<clip-source>",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-clip-source",
"type": "type",
"value": "<url>"
},
{
"name": "<geometry-box>",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box",
"type": "type",
"value": "<shape-box> | fill-box | stroke-box | view-box"
},
{
"name": "<mask-reference>",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-mask-reference",
"type": "type",
"value": "none | <image> | <mask-source>"
},
{
"name": "<mask-source>",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-mask-source",
"type": "type",
"value": "<url>"
},
{
"name": "<masking-mode>",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-masking-mode",
"type": "type",
"value": "alpha | luminance | match-source"
},
{
"name": "<compositing-operator>",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-compositing-operator",
"type": "type",
"value": "add | subtract | intersect | exclude"
},
{
"name": "<mask-layer>",
"href": "https://drafts.fxtf.org/css-masking-1/#typedef-mask-layer",
"type": "type",
"value": "<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"
}
],
"warnings": [
{
"msg": "Dangling value",
"name": "userSpaceOnUse",
"prose": "The contents of the clipPath represent values in the current user coordinate system in place at the time when the clipPath element is referenced (i.e., the user coordinate system for the element referencing the clipPath element via the clip-path property).",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-clippathunits-userspaceonuse",
"type": "value",
"value": "userSpaceOnUse",
"for": "clipPathUnits"
},
{
"msg": "Dangling value",
"name": "objectBoundingBox",
"prose": "The coordinate system has its origin at the top left corner of the bounding box of the element to which the clipping path applies to and the same width and height of this bounding box. User coordinates are sized equivalently to the CSS px unit.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-clippathunits-objectboundingbox",
"type": "value",
"value": "objectBoundingBox",
"for": "clipPathUnits"
},
{
"msg": "Dangling value",
"name": "userSpaceOnUse",
"prose": "x, y, width and height represent values in the current user coordinate system [CSS3-TRANSFORMS] in place at the time when the mask element is referenced (i.e., the user coordinate system for the element referencing the mask element via the mask property).",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-maskunits-userspaceonuse",
"type": "value",
"value": "userSpaceOnUse",
"for": "maskUnits"
},
{
"msg": "Dangling value",
"name": "objectBoundingBox",
"prose": "x, y, width and height represent fractions or percentages of the object bounding box of the element to which the mask is applied. User coordinates are sized equivalently to the CSS px unit.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-maskunits-objectboundingbox",
"type": "value",
"value": "objectBoundingBox",
"for": "maskUnits"
},
{
"msg": "Dangling value",
"name": "userSpaceOnUse",
"prose": "The user coordinate system for the contents of the mask element is the current user coordinate system in place at the time when the mask element is referenced (i.e., the user coordinate system for the element referencing the mask element via the mask property).",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-maskcontentunits-userspaceonuse",
"type": "value",
"value": "userSpaceOnUse",
"for": "maskContentUnits"
},
{
"msg": "Dangling value",
"name": "objectBoundingBox",
"prose": "The coordinate system has its origin at the top left corner of the bounding box of the element to which the clipping path applies to and the same width and height of this bounding box. User coordinates are sized equivalently to the CSS px unit.",
"href": "https://drafts.fxtf.org/css-masking-1/#valdef-maskcontentunits-objectboundingbox",
"type": "value",
"value": "objectBoundingBox",
"for": "maskContentUnits"
}
]
}