Source code

Revision control

Copy as Markdown

Other Tools

# This tests have a non-preserve3d stacking context nested within
# preserve-3d sub-tree. This nested context is still getting baked in
# and participates (as a whole) in plane splitting.
# It is layed out in the same plane as the parent, so should be ordered
# last, given that it's coming later than the parent.
---
root:
items:
- type: stacking-context
bounds: [0, 0, 1024, 1024]
items:
- type: stacking-context
bounds: [0, 0, 600, 600]
transform-style: preserve-3d
transform: rotate-y(60.0)
items:
- type: rect
bounds: [0, 0, 600, 600]
color: red
- type: stacking-context
bounds: [0, 0, 100, 100]
items:
- type: rect
bounds: [0, 0, 600, 200]
color: green