summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/clip/clip-thin-rotated.yaml
blob: d0e626af91fbe6ff86a73c6970b04d9f7f713377 (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
# Test checks if a rotated clip with a long and thin rectangle would still
# correctly affect the primitive with regards to the inner bounds.
---
root:
  items:
    -
      bounds: [0, 0, 0, 0]
      type: "reference-frame"
      id: 2
    -
      bounds: [0, 0, 0, 0]
      type: "stacking-context"
      transform: rotate(45) translate(200, 0)
      items:
        -
          bounds: [0, 0, 20, 1000]
          type: clip
          id: 5
        # uncomment this to see the clip area
        #-
        #  bounds: [0, 0, 20, 1000]
        #  type: rect
        #  color: green
    - # we aren't supposed to see this one
      bounds: [0, 0, 0, 0]
      type: "stacking-context"
      clip-and-scroll: [2, 5]
      items:
        -
          bounds: [120, 120, 10, 10]
          type: rect
          color: red
    -
      bounds: [0, 0, 0, 0]
      type: "stacking-context"
      clip-and-scroll: [2, 5]
      items:
        -
          bounds: [100, 100, 14, 14]
          type: rect
          color: blue