summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/transforms/perspective-clip.yaml
blob: ae905b8a441a4ee03ba927a606aa05468be44b45 (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
      bounds: [225, 200, 150, 200]
      complex:
        - rect: [225, 200, 150, 200]
          radius: 32
      items:
        -
          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