# The test assures that the viewport offset is correctly getting
# the reference_frame_relative_offset applied when flattening
# a scroll frame.
---
root:
  items:
    - type: stacking-context
      bounds: 0 100 0 0
      items:
        - type: scroll-frame
          id: 2
          bounds: 0 0 1000 1000
          clip-to-frame: true
          items:
            - type: sticky-frame
              bounds: 0 -50 1000 50
              margin-top: -50
              vertical-offset-bounds: [0, 2000]
              items:
                 - type: rect
                   bounds: 0 -50 1000 100
                   color: red
                   clip-chain: [2]
