tor-browser

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

ancestor-scroll-frames.yaml (1261B)


      1 # Test that we don't select a nested scroll frame as a scroll root and include
      2 # primitives that are positioned by ancestors of that scroll root, when creating
      3 # a tile cache for a blend container. This test will cause a panic in
      4 # `get_relative_transform_with_face` otherwise.
      5 ---
      6 root:
      7  items:
      8    - type: stacking-context
      9      blend-container: true
     10      items:
     11        - type: scroll-frame
     12          bounds: [0, 0, 200, 200]
     13          content-size: [200, 400]
     14          items:
     15            - type: stacking-context
     16              bounds: [0, 0, 200, 200]
     17              transform: rotate(45)
     18              items:
     19                - type: rect
     20                  bounds: [0, 0, 200, 200]
     21                  color: red
     22        - type: scroll-frame
     23          bounds: [200, 0, 400, 200]
     24          content-size: [400, 200]
     25          items:
     26            - type: scroll-frame
     27              bounds: [200, 0, 400, 200]
     28              content-size: [400, 400]
     29              items:
     30                - type: rect
     31                  bounds: [200, 0, 100, 200]
     32                  color: green
     33                  backface-visible: true
     34                - type: rect
     35                  bounds: [300, 0, 100, 200]
     36                  color: blue
     37                  backface-visible: false