summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/clip/fixed-position-clipping.yaml
blob: e6e27ea857c648d9ff9cb960d6a6b9e203c62dc3 (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
# This test ensures that children of fixed position stacking contexts are not
# clipped by parent clipping nodes. The contents of the fixed position stacking
# contexts below should not be clipped by their parent clipping nodes, but
# instead should be promoted to be children of the top-level reference frame.
---
root:
  items:
    -
      clip-rect: [15, 15, 30, 30]
      type: scroll-frame
      content-size: [60, 60]
      bounds: [15, 15, 30, 30]
      items:
      -
        bounds: [10, 10, 100, 100]
        clip-rect: [10, 10, 100, 100]
        type: stacking-context
        items:
          -
            bounds: [0, 0, 100, 100]
            clip-rect: [0, 0, 100, 100]
            type: rect
            color: 0 255 0 1.0
    # The same test as above, except this time the stacking context also starts its
    # own reference frame.
    -
      clip-rect: [115, 15, 30, 30]
      type: scroll-frame
      content-size: [60, 60]
      bounds: [115, 15, 30, 30]
      items:
      -
        bounds: [110, 10, 100, 100]
        clip-rect: [110, 10, 100, 100]
        id: 4
        type: stacking-context
        transform: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
        items:
          -
            bounds: [0, 0, 100, 100]
            clip-rect: [0, 0, 100, 100]
            type: rect
            color: 0 255 0 1.0
  id: [0, 1]
pipelines: []