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