summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/transforms/perspective-clip.yaml
blob: bbb9c35efb61b1eb34a704bdcc8e99f9d098830c (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
# Test that a local space clip is correctly applied to
# a primitive with a perspective transform.
---
root:
  items:
    - type: clip
      id: 2
      complex:
        - rect: [225, 200, 150, 200]
          radius: 32
    -
      type: "stacking-context"
      bounds: 0 0 1000 1000
      perspective: 100
      perspective-origin: 300 300
      items:
        -
          type: "stacking-context"
          transform: rotate-x(-10)
          transform-origin: 300 300
          filters: identity
          items:
            -
              bounds: [200, 200, 200, 200]
              image: checkerboard(2, 16, 12)
              stretch-size: 200 200
              clip-chain: [2]