27 lines
933 B
YAML
27 lines
933 B
YAML
# The "preserve-3d" context has a "flat" child, which contains two other stacking contexts
|
|
# that have their Z modified. The Z should not affect their drawing order, since they
|
|
# are hidden from the 3D hierarchy by the flat parent.
|
|
---
|
|
root:
|
|
items:
|
|
- type: stacking-context
|
|
bounds: [0, 0, 100, 100]
|
|
transform-style: preserve-3d
|
|
items:
|
|
- type: stacking-context
|
|
bounds: [0, 0, 100, 100]
|
|
items:
|
|
- type: stacking-context
|
|
bounds: [0, 0, 100, 100]
|
|
transform: translate(0, 0, 10)
|
|
items:
|
|
- type: rect
|
|
bounds: [0, 0, 100, 100]
|
|
color: red
|
|
- type: stacking-context
|
|
bounds: [0, 0, 100, 100]
|
|
transform: translate(0, 0, -10)
|
|
items:
|
|
- type: rect
|
|
bounds: [0, 0, 100, 100]
|
|
color: green
|