tor-browser

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

custom-clip-chain-node-ancestors.yaml (863B)


      1 # This test ensures that custom clip chains are not affected by the ancestors
      2 # of their clipping nodes. In this case the node, 3, will probably be optimized
      3 # away since its ancestor 2 has a tighter bounding rect. On the other hand, a
      4 # clip chain which includes 3 should only get the rectangle specified by that
      5 # node and not be affected by 2 at all.
      6 ---
      7 root:
      8  items:
      9    -
     10      bounds: [25, 25, 50, 50]
     11      "clip-rect": [25, 25, 50, 50]
     12      type: clip
     13      id: 2
     14    -
     15      bounds: [10, 10, 100, 100]
     16      clip-rect: [10, 10, 100, 100]
     17      type: clip
     18      id: 3
     19      "content-size": [800, 1000]
     20    -
     21      bounds: [0, 0, 0, 0]
     22      clip-rect: [0, 0, 0, 0]
     23      type: "clip-chain"
     24      id: 10
     25      clips: [3]
     26    -
     27      bounds: [0, 0, 200, 200]
     28      clip-rect: [0, 0, 200, 200]
     29      clip-chain: 10
     30      type: rect
     31      color: 0 255 0 1