summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/clip/segmentation-across-rotation.yaml
blob: c90cf79e4e8f7069c243c438729605b00732ccae (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
# This test ensures that a clip that is segmented, with segments
# that have no intersection with the world-space outer bounds of
# the clip rectangle render correctly. In this case the first clip
# defines the outer bounds of the clip rectangle and the rotation
# ensures that the inner clip isn't optimized away completely. The
# segments of the rounded corner clip don't have any intersection at
# all with the clip in area from the outer clip, so they shouldn't
# affect the rendering of the green square.
---
root:
  items:
    - type: clip
      bounds: [100, 100, 100, 100]
      id: 2
    -
      type: stacking-context
      clip-and-scroll: 2
      transform: rotate(0.25)
      items:
       - type: clip
         bounds: [0, 0, 2400, 900]
         id: 3
         complex:
           - rect: [ 0, 0, 2400, 900 ]
             radius: 50
       - type: rect
         color: [0, 255, 0, 1]
         bounds: [0, 0, 2400, 900]
         clip-and-scroll: 3