tor-browser

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

clip-empty-inner-rect.yaml (744B)


      1 # In this case, the inner rectangle of the clip is empty, because
      2 # the size is 200 and each corner radius is 100.
      3 # The blue rect should be fully invisible
      4 ---
      5 root:
      6  items:
      7    -
      8      type: "stacking-context"
      9      bounds: [0, 0, 0, 0]
     10      items:
     11        -
     12          type: clip
     13          id: 2
     14          complex:
     15            - rect: [ 0, 0, 200, 200 ]
     16              radius: 100
     17        - type: rect
     18          bounds: [ 0, 0, 200, 200 ]
     19          color: red
     20          clip-chain: [2]
     21        - type: "stacking-context"
     22          bounds: [0, 0, 0, 0]
     23          transform: translate(0, 0, 1)
     24          items:
     25            -
     26              type: rect
     27              bounds: [0, 0, 25, 25]
     28              color: blue
     29              clip-chain: [2]