summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/scrolling/fixed-position.yaml
blob: c56f1378cd7c15f0f61a3d0e3497096e3412548e (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
root:
  bounds: [0, 0, 1024, 10000]
  scroll-offset: [0, 100]
  items:
    - type: stacking-context
      bounds: [0, 0, 50, 50]
      items:
        # This item should not scroll out of view because it is fixed position.
        - type: rect
          bounds: [0, 0, 50, 50]
          color: green
          spatial-id: root-reference-frame
    - type: stacking-context
      bounds: [0, 0, 50, 50]
      transform: translate(60, 100)
      id: 100
      items:
        - type: stacking-context
          bounds: [0, 0, 50, 50]
          items:
            # Even though there is a custom clip-scroll ID, it should scroll,
            # because it is fixed relative to its reference frame. The reference frame
            # of this stacking context is the stacking context parent because it has
            # a transformation.
            - type: rect
              bounds: [0, 0, 50, 50]
              color: green
    - type: stacking-context
      bounds: [120, 0, 50, 200]
      transform: translate(0, 0)
      id: 101
      items:
        # This is similar to the previous case, but ensures that this still works
        # even with an identity transform.
        - type: stacking-context
          bounds: [0, 0, 50, 200]
          items:
            - type: rect
              bounds: [0, 100, 50, 50]
              color: green
    - type: stacking-context
      bounds: [180, 0, 50, 200]
      perspective: 1
      id: 102
      items:
        # This is similar to the previous case, but for perspective.
        - type: stacking-context
          bounds: [0, 0, 50, 200]
          items:
            - type: rect
              bounds: [0, 100, 50, 50]
              color: green