# Test that a root-level stacking context with a rounded-rect clip allows
# tile cache barriers to fire, resulting in multiple picture cache slices.
# This simulates the Firefox browser chrome case where `body` has
# `contain: paint` and the window has CSD rounded corners.
---
root:
  items:
    - type: clip
      id: 2
      complex:
        - rect: [0, 0, 400, 400]
          radius: 10

    - type: clip-chain
      id: 3
      clips: [2]

    - type: stacking-context
      bounds: [0, 0, 400, 400]
      clip-chain: 3
      items:
        - type: rect
          color: blue
          bounds: [0, 0, 400, 50]

        - type: iframe
          id: [1, 3]
          bounds: [0, 50, 400, 350]

pipelines:
  -
    id: [1, 3]
    items:
      - type: rect
        color: green
        bounds: [0, 0, 400, 350]
