snapshot-shadow.yaml (1583B)
1 # This test case contains a row of simple snapshotted stacking 2 # contexts with drop shadows on them. Their snapshots are rendered 3 # as images in a second row. The second row should look identical 4 # to the first. 5 --- 6 root: 7 items: 8 - type: stacking-context 9 bounds: [10, 10, 200, 200] 10 filters: drop-shadow([0, 0], 10, black) 11 snapshot: 12 name: "snap0" 13 area: [-50, -50, 200, 200] 14 items: 15 - type: rect 16 bounds: [10, 10, 80, 80] 17 color: [0, 150, 0] 18 - type: rect 19 bounds: [5, 5, 40, 40] 20 color: [200, 0, 0] 21 22 - type: stacking-context 23 bounds: [110, 10, 200, 200] 24 filters: drop-shadow([5, 5], 0, red) 25 snapshot: 26 name: "snap1" 27 area: [-50, -50, 200, 200] 28 items: 29 - type: rect 30 bounds: [10, 10, 80, 80] 31 color: [0, 150, 0] 32 - type: rect 33 bounds: [5, 5, 40, 40] 34 color: [200, 0, 0] 35 36 - type: stacking-context 37 bounds: [210, 10, 200, 200] 38 filters: 39 - drop-shadow([4, 4], 4, red) 40 - drop-shadow([6, 6], 4, green) 41 - drop-shadow([8, 8], 4, blue) 42 snapshot: 43 name: "snap2" 44 area: [-50, -50, 200, 200] 45 items: 46 - type: rect 47 bounds: [10, 10, 80, 80] 48 color: [0, 150, 0] 49 - type: rect 50 bounds: [5, 5, 40, 40] 51 color: [200, 0, 0] 52 53 - type: stacking-context 54 bounds: [10, 110, 2000, 200] 55 items: 56 - image: snapshot(snap0) 57 bounds: [-50, -50, 200, 200] 58 - image: snapshot(snap1) 59 bounds: [50, -50, 200, 200] 60 - image: snapshot(snap2) 61 bounds: [150, -50, 200, 200]