tor-browser

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

viewport-offset.yaml (659B)


      1 # The test assures that the viewport offset is correctly getting
      2 # the reference_frame_relative_offset applied when flattening
      3 # a scroll frame.
      4 ---
      5 root:
      6  items:
      7    - type: stacking-context
      8      bounds: 0 100 0 0
      9      items:
     10        - type: scroll-frame
     11          id: 2
     12          bounds: 0 0 1000 1000
     13          clip-to-frame: true
     14          items:
     15            - type: sticky-frame
     16              bounds: 0 -50 1000 50
     17              margin-top: -50
     18              vertical-offset-bounds: [0, 2000]
     19              items:
     20                 - type: rect
     21                   bounds: 0 -50 1000 100
     22                   color: red
     23                   clip-chain: [2]