same-plane.yaml (1242B)
1 # This test has a number of rectangles placed on the same transformed preserve3d plane. 2 # The expected result is that the rectangles are rendered in the order they are listed. 3 # This can fail if the primitives are considered outside of the main plane due 4 # to floating point precision issues in plane-splitting and transformation. 5 --- 6 root: 7 items: 8 - type: "stacking-context" 9 transform-style: preserve-3d 10 transform: rotate-y(-30) rotate-x(-75) translate(-100, 100, 0) 11 items: 12 - type: "stacking-context" 13 perspective: 400 14 transform-style: preserve-3d 15 items: 16 - type: rect 17 bounds: [0, 0, 450, 300] 18 color: 0 255 0 1.0000 19 - type: stacking-context 20 bounds: [0, 0, 600, 600] 21 transform: translate(200, 0, 0) 22 items: 23 - type: rect 24 bounds: [-200, 0, 150, 300] 25 color: 255 0 0 1.0000 26 - type: stacking-context 27 bounds: [0, 0, 600, 600] 28 transform: rotate-z(-90) 29 items: 30 - 31 bounds: [0, 200, 150, 200] 32 type: rect 33 color: 0 0 255 1.0000