snapshot-complex-clip.yaml (1221B)
1 # This test case contains a snapshotted picture with a single 2 # child stacking context with a clip applied. In the general 3 # clips are hoisted out of picture if all of their children share 4 # it, but we rely on the clip being baked in the snapshot so 5 # This test should that snapshotted picture and the snapshot image 6 # both affected by the clip. 7 --- 8 root: 9 items: 10 - type: stacking-context 11 bounds: [0, 0, 1000, 1000] 12 items: 13 - type: stacking-context 14 bounds: [0, 0, 200, 200] 15 snapshot: 16 name: "snap0" 17 items: 18 - type: clip 19 id: 101 20 complex: 21 - rect: [10, 10, 180, 180] 22 radius: [32, 16] 23 clip-mode: clip-out 24 - type: clip-chain 25 id: 201 26 clips: [101] 27 - type: stacking-context 28 bounds: [0, 0, 200, 200] 29 clip-chain: 201 30 items: 31 - type: rect 32 bounds: [0, 0, 200, 200] 33 color: green 34 clip-chain: 201 35 - type: rect 36 bounds: [100, 100, 100, 100] 37 color: [100, 100, 100] 38 39 - image: snapshot(snap0) 40 bounds: [200, 0, 200, 200]