---
root:
  items:
    - type: stacking-context
      bounds: [0, 0, 100, 100]
      items:
      - type: stacking-context
        bounds: [100000, 0, 40000, 40000]
        snapshot:
          name: "snap0"
          area: [-64, -64, 32896, 32896]
        items:
          - type: rect
            bounds: [0, 0, 32768, 32768]
            color: [0, 150, 0]
          - type: rect
            bounds: [256, 256, 1024, 1024]
            color: [150, 0, 0]

      - type: rect
        bounds: [0, 0, 514, 514]
        color: [100, 0, 0]
      - type: rect
        bounds: [1, 1, 512, 512]
        color: [0, 150, 0]
      - type: rect
        bounds: [4, 4, 16, 16]
        color: [150, 0, 0]
      - image: snapshot(snap0)
        bounds: [0, 0, 514, 514]
