summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/blend/isolated-premultiplied.yaml
blob: a8d738a389f1ab74bdd3a92f0d3b69b7ff2abdbe (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
---
root:
  items:
    - type: stacking-context
      bounds: [0, 0, 100, 100]
      items:
          # this stacking context should force its parent to be an isolated group
          # we don't want it to actually draw anything so just make it draw a white rect
        - type: stacking-context
          bounds: [0, 0, 100, 100]
          mix-blend-mode: lighten
          items:
          - type: rect
            bounds: [500, 500, 100, 100]
            color: [255, 255, 255]

          # transparent white, should be invisible
        - type: rect
          bounds: [0, 0, 100, 100]
          color: [255, 255, 255, 0.5]
          # transparent white, should be invisible
        - type: image
          bounds: [200, 0, 100, 100]
          src: "transparent-white.png"