summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/filters/svg-filter-blend.yaml
blob: 2167013d3c6054f9bfb147f09ab0b8df26bbb98e (plain)
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
# Tests various blend modes using the blend filter primitive.
---
root:
  items:
    - type: stacking-context
      bounds: [0, 0, 50, 250]
      filter-primitives:
      - type: flood
        color: [255, 255, 255, 1]
        color-space: srgb
      - type: blend
        in1: original
        in2: 0
        color-space: srgb
        blend-mode: difference
      items:
        - type: rect
          bounds: [0, 0, 50, 50]
          color: [255, 0, 255, 1]

    - type: stacking-context
      bounds: [0, 0, 50, 250]
      filter-primitives:
      - type: flood
        color: [51, 51, 51, 1]
        color-space: srgb
      - type: blend
        in1: original
        in2: 0
        color-space: srgb
        blend-mode: multiply
      items:
        - type: rect
          bounds: [0, 50, 50, 50]
          color: [200, 100, 10, 1]

    - type: stacking-context
      bounds: [0, 0, 50, 250]
      filter-primitives:
      - type: flood
        color: [255, 10, 156, 1]
        color-space: srgb
      - type: blend
        in1: original
        in2: 0
        color-space: srgb
        blend-mode: darken
      items:
        - type: rect
          bounds: [0, 100, 50, 50]
          color: [20, 222, 155, 1]

    - type: stacking-context
      bounds: [0, 0, 50, 250]
      filter-primitives:
      - type: flood
        color: [255, 10, 156, 1]
        color-space: srgb
      - type: blend
        in1: original
        in2: 0
        color-space: srgb
        blend-mode: lighten
      items:
        - type: rect
          bounds: [0, 150, 50, 50]
          color: [20, 222, 155, 1]

    - type: stacking-context
      bounds: [0, 0, 50, 250]
      filter-primitives:
      - type: flood
        color: [255, 10, 156, 1]
        color-space: srgb
      - type: blend
        in1: original
        in2: 0
        color-space: srgb
        blend-mode: exclusion
      items:
        - type: rect
          bounds: [0, 200, 50, 50]
          color: [0, 255, 24, 1]