# Two rounded-rect clips shared by all primitives in the slice.
# The outer clip has radius 20 on a 400x400 rect, the inner has
# radius 15 on a 400x350 rect. Both share the top-left corner at
# the origin, so the combined compositor clip should have radius 20
# on top corners (max of both) and radius 15 on bottom corners
# (only the inner clip contributes).
---
root:
  items:
    - type: clip
      id: 2
      complex:
        - rect: [0, 0, 400, 400]
          radius: 20

    - type: clip
      id: 3
      complex:
        - rect: [0, 0, 400, 350]
          radius: 15

    - type: rect
      bounds: 0 0 400 350
      color: red
      clip-chain: [2, 3]

    - type: rect
      bounds: 0 0 200 175
      color: blue
      clip-chain: [2, 3]
