tor-browser

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

rounded-corners-1.yaml (567B)


      1 # Since there is no clip-chain shared between the two prims, the rounded
      2 # clip will be applied to the primitive, causing allocation of a mask surface.
      3 # The second prim is clipped out to make it match the reference.
      4 ---
      5 root:
      6  items:
      7    - type: clip
      8      id: 2
      9      complex:
     10        - rect: [50, 50, 200, 200]
     11          radius: 32
     12 
     13    - type: clip
     14      id: 3
     15      bounds: [300, 50, 0, 0]
     16 
     17    - type: rect
     18      bounds: 50 50 200 200
     19      color: red
     20      clip-chain: [2]
     21 
     22    - type: rect
     23      bounds: 300 50 200 200
     24      color: red
     25      clip-chain: [3]