summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/transforms/non-inversible-world-rect.yaml
blob: f94404f58ed501519027b6d6a042ba8f5d042c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Tests that `get_raster_rects` raster -> world transform is inversible in general,
# but one of the vertices of the world rectangles can't map back to the raster.
---
root:
  items:
    - type: stacking-context
      bounds: 0 0 400 400
      perspective: 800
      perspective-origin: 50% 200
      items:
        - type: stacking-context
          bounds: 0 0 400 400
          transform-style: preserve-3d
          transform: rotate-z(40) translate(400, 200, 0)
          margin: 100
          items:
            - type: stacking-context
              bounds: 0 0 1000 1000
              transform: rotate-y(-75) translate(0, 0, -500)
              items:
                - type: rect
                  bounds: [0, 0, 200, 200]
                  color: red