# Tests that `get_raster_rects` raster -> world transform is inversible in general,
# but one of the vertices of the world rectangles can't map back to the raster.
---
root:
  items:
    - type: stacking-context
      bounds: 0 0 400 400
      perspective: 800
      perspective-origin: 50% 200
      items:
        - type: stacking-context
          bounds: 0 0 400 400
          transform-style: preserve-3d
          transform: rotate-z(40) translate(400, 200, 0)
          margin: 100
          items:
            - type: stacking-context
              bounds: 0 0 1000 1000
              transform: rotate-y(-75) translate(0, 0, -500)
              items:
                - type: rect
                  bounds: [0, 0, 200, 200]
                  color: red
