tor-browser

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

snapshot-offscreen.yaml (1577B)


      1 # This test case contains two snapshotted stacking contexts that are far
      2 # off-screen, displayed as images that are in view.
      3 # The images should show the contents of the stacking context.
      4 ---
      5 root:
      6  items:
      7    - type: stacking-context
      8      bounds: [0, 0, 100, 100]
      9      items:
     10      - type: rect
     11        bounds: [ 0, 0, 320, 250 ]
     12        color: [100, 50, 10]
     13      - type: stacking-context
     14        bounds: [100000, 0, 200, 200]
     15        snapshot:
     16          name: "snap0"
     17          area: [10, 10, 80, 180]
     18        items:
     19          - type: rect
     20            bounds: [ 0, 0, 90, 100]
     21            color: [0, 150, 0]
     22          - type: rect
     23            bounds: [ 10, 100, 90, 100]
     24            color: [150, 0, 0]
     25      - type: stacking-context
     26        bounds: [-3500, 4500, 200, 200]
     27        snapshot:
     28          name: "snap1"
     29          area: [-10, -10, 120, 220]
     30        items:
     31          - type: rect
     32            bounds: [0, 0, 90, 100]
     33            color: [0, 150, 0]
     34          - type: rect
     35            bounds: [ 10, 100, 90, 100]
     36            color: [150, 0, 0]
     37 
     38      # The two rects behind the images are only there to show
     39      # the bounds of the image. They are not useful to the test
     40      # per-se but make it easier to see what is off if the
     41      # bounds are incorrect.
     42      - type: rect
     43        bounds: [10, 20, 80, 180]
     44        color: [200, 200, 200]
     45      - image: snapshot(snap0)
     46        bounds: [10, 20, 80, 180]
     47 
     48      - type: rect
     49        bounds: [150, 0, 120, 220]
     50        color: [200, 200, 200]
     51      - image: snapshot(snap1)
     52        bounds: [150, 0, 120, 220]