summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/text/mix-blend-layers.yaml
blob: 5c21935100f23650412354a2ed46c0f94a78ab70 (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
# Verify that surfaces with differing surface/raster spatial nodes correctly sample from
# parent mix-blend container surfaces
---
root:
  items:
    - type: stacking-context
      bounds: [100, 100, 0, 0]
      transform: scale(2)
      blend-container: true
      items:
        - type: "shadow"
          blur-radius: 0
          offset: [-5, -2]
          color: [255, 255, 0, 1]
        - text: "Fault"
          origin: 100 150
          size: 100
          color: [0, 0, 0, 0]
          font: "VeraBd.ttf"
        -
          type: "pop-all-shadows"

        - type: stacking-context
          blend-container: true
          mix-blend-mode: darken
          items:
            - type: "shadow"
              blur-radius: 0
              offset: [3, -4]
              color: [0, 255, 255, 1]
            - text: "Fault"
              origin: 100 150
              size: 100
              color: [0, 0, 0, 0]
              font: "VeraBd.ttf"
            -
              type: "pop-all-shadows"

            - type: stacking-context
              blend-container: true
              mix-blend-mode: darken
              items:
                - type: "shadow"
                  blur-radius: 0
                  offset: [5, 2]
                  color: [255, 0, 255, 1]
                - text: "Fault"
                  origin: 100 150
                  size: 100
                  color: [0, 0, 0, 0]
                  font: "VeraBd.ttf"
                -
                  type: "pop-all-shadows"