Source code

Revision control

Copy as Markdown

Other Tools

# The result should be matching the flat ordering, since there
# is no variation in Z of the preserve-3D children.
---
root:
items:
- type: stacking-context
bounds: [0, 0, 200, 200]
transform: rotate-x(30)
items:
- type: rect
bounds: [0, 0, 100, 100]
color: green
- type: stacking-context
bounds: [25, 25, 100, 100]
#transform: rotate-z(45)
items:
- type: rect
bounds: [0, 0, 100, 100]
color: red
- type: rect
bounds: [100, 0, 100, 100]
color: blue