1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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
|