mixed-order.yaml (853B)
1 # The "preserve-3d" context has a mix of children being other stacking contexts and 2 # just primitives. The other stacking contexts are also "preserve-3d" but on the same plane, 3 # so the result ordering should be exactly matching the way we specify the children. 4 --- 5 root: 6 items: 7 - type: stacking-context 8 bounds: [0, 0, 200, 200] 9 transform-style: preserve-3d 10 transform: rotate-x(30) 11 items: 12 - type: rect 13 bounds: [0, 0, 100, 100] 14 color: green 15 - type: stacking-context 16 bounds: [25, 25, 100, 100] 17 #TODO: https://github.com/servo/webrender/issues/2946 18 #transform: rotate-z(45) 19 items: 20 - type: rect 21 bounds: [0, 0, 100, 100] 22 color: red 23 - type: rect 24 bounds: [100, 0, 100, 100] 25 color: blue