summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/invalidation/scroll_subpic_1.yaml
blob: f677f984b1752664b5aa2e2de1252abfc4fb1be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This is intended to be a really simple imitation of what Gecko's
# display-list around the content scrolling viewport.  In addition to the
# scroll-frame's clip (added by clip-to-frame) it also adds equivalent clips
# to everything inside, including inside the stacking context.  The stacking
# context with partial opacity acts as a regression test for bug 1836063.

root:
  items:
    - type: clip
      id: 2
      bounds: [0, 0, 50, 50]
    - type: clip-chain
      id: 3
      clips: [2]

    - type: scroll-frame
      bounds: [0, 0, 50, 50]
      scroll-offset: [0, 0]
      clip-to-frame: true
      items:
        - type: stacking-context
          bounds: [0, 0, 100, 500]
          filters: [opacity(0.9)]
          clip-chain: 3
          items:
            - type: rect
              bounds: [0, 0, 100, 500]
              color: green
              clip-chain: 3