summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/scrolling/viewport-offset.yaml
blob: 171e69a63d6f0b7236faaf0f76538b5d4511f3a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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]