tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

segmentation-across-rotation.yaml (961B)


      1 # This test ensures that a clip that is segmented, with segments
      2 # that have no intersection with the world-space outer bounds of
      3 # the clip rectangle render correctly. In this case the first clip
      4 # defines the outer bounds of the clip rectangle and the rotation
      5 # ensures that the inner clip isn't optimized away completely. The
      6 # segments of the rounded corner clip don't have any intersection at
      7 # all with the clip in area from the outer clip, so they shouldn't
      8 # affect the rendering of the green square.
      9 ---
     10 root:
     11  items:
     12    - type: clip
     13      bounds: [100, 100, 100, 100]
     14      id: 2
     15    -
     16      type: stacking-context
     17      transform: rotate(0.25)
     18      items:
     19       - type: clip
     20         id: 3
     21         complex:
     22           - rect: [ 0, 0, 2400, 900 ]
     23             radius: 50
     24       - type: clip-chain
     25         id: 4
     26         clips: [2, 3]
     27       - type: rect
     28         color: [0, 255, 0, 1]
     29         bounds: [0, 0, 2400, 900]
     30         clip-chain: 4