# Test that a local-space clip when applied to a surface (due to the filter) that is also
# a raster root (due to the perspective) is correctly applied.
---
root:
  items:
    -
      type: "reference-frame"
      transform: [perspective(10), rotate(45)]
      transform-origin: 500 100
      items:
        -
          bounds: [100, 100, 200, 200]
          type: clip
          id: 2
        -
          type: "clip-chain"
          id: 3
          clips: [2]
        -
          clip-chain: 3
          type: "stacking-context"
          filters: [identity]
          items:
            -
              bounds: [0, 0, 400, 400]
              type: rect
              color: red
