clip-2d-z-rotations.yaml (701B)
1 # Ensure that we correctly handle clips that are 2d axis-aligned but 2 # fiddle with the z-coordinate of the primitive without preserve-3d 3 --- 4 root: 5 items: 6 - type: stacking-context 7 transform: rotate-x(45) rotate-z(45) translate(200, 200) 8 transform-origin: 100 100 9 items: 10 - type: stacking-context 11 transform: rotate-z(-45) rotate-y(45) translate(20, 0) 12 transform-origin: 100 100 13 items: 14 - type: clip 15 id: 3 16 complex: 17 - rect: [0, 0, 200, 100] 18 radius: 16 19 - bounds: [0, 0, 200, 100] 20 type: rect 21 color: red 22 clip-chain: [3]