# Ensure that the clip rect of a primitive that is promoted to a compositor
# surface is correctly applied when registering it as an occlusion plane.

root:
  items:
    - type: rect
      color: red
      bounds: [50, 50, 200, 200]

    - type: yuv-image
      format: interleaved
      src: spacex-yuv-8.png
      bounds: [50, 50, 200, 200]
      prefer-compositor-surface: true
      clip-rect: [75, 75, 150, 150]
