tor-browser

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

mix-blend-invalid-backdrop.yaml (979B)


      1 # Test that if the parent surface is clipped such that there
      2 # is no backdrop rect available, no crash occurs and output
      3 # is as expected (a no-op mix-blend)
      4 ---
      5 root:
      6  items:
      7    # Ensure a filter is placed here to force this mix-blend to isolate from
      8    # the tile cache backdrop - otherwise the surface won't get clipped, which
      9    # is what we're trying to test.
     10    - type: stacking-context
     11      filters: [identity]
     12      items:
     13      - type: clip
     14        id: 2
     15        bounds: [0, 0, 100, 100]
     16      -
     17        type: "clip-chain"
     18        id: 3
     19        clips: [2]
     20      - type: stacking-context
     21        blend-container: true
     22        clip-chain: 3
     23        items:
     24          - type: rect
     25            bounds: [0, 0, 100, 100]
     26            color: red
     27          - type: stacking-context
     28            bounds: [100, 0, 100, 100]
     29            mix-blend-mode: multiply
     30            items:
     31              - type: rect
     32                bounds: [0, 0, 100, 100]
     33                color: green