summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/blend/isolated.yaml
blob: fcfd0676d785063d4c69a070455b2a247a1bece6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
root:
  items:
        - type: rect
          bounds: [0, 0, 100, 100]
          color: [255, 0, 0]
        # this stacking context should create an isolated group for its children
        # causing the yellow rect to not blend with the green backdrop
        - type: stacking-context
          bounds: [0, 0, 100, 100]
          blend-container: true
          items:
            - type: stacking-context
              bounds: [0, 0, 100, 100]
              mix-blend-mode: difference
              items:
                - type: rect
                  bounds: [0, 0, 100, 100]
                  color: [255, 255, 0]