snapshot-detached.yaml (689B)
1 # This test case contains a detached snapshotted stacking context 2 # displayed as an image. 3 # This means that the stacking context should appear only once as 4 # an image, while the original stacking context is "detached" from 5 # the scene and not shown. 6 --- 7 root: 8 items: 9 - type: stacking-context 10 bounds: [0, 0, 1000, 1000] 11 items: 12 - type: stacking-context 13 bounds: [10, 10, 200, 200] 14 snapshot: 15 name: "snap0" 16 area: [-10, -10, 120, 120] 17 detached: true 18 items: 19 - type: rect 20 bounds: [10, 10, 80, 80] 21 color: [0, 150, 0] 22 23 - image: snapshot(snap0) 24 bounds: [210, 10, 120, 120]