tor-browser

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

clip-thin-rotated.yaml (1010B)


      1 # Test checks if a rotated clip with a long and thin rectangle would still
      2 # correctly affect the primitive with regards to the inner bounds.
      3 ---
      4 root:
      5  items:
      6    -
      7      bounds: [0, 0, 0, 0]
      8      type: "reference-frame"
      9      id: 2
     10    -
     11      bounds: [0, 0, 0, 0]
     12      type: "stacking-context"
     13      transform: rotate(45) translate(200, 0)
     14      items:
     15        -
     16          bounds: [0, 0, 20, 1000]
     17          type: clip
     18          id: 5
     19        # uncomment this to see the clip area
     20        #-
     21        #  bounds: [0, 0, 20, 1000]
     22        #  type: rect
     23        #  color: green
     24    - # we aren't supposed to see this one
     25      bounds: [0, 0, 0, 0]
     26      type: "stacking-context"
     27      clip-and-scroll: [2, 5]
     28      items:
     29        -
     30          bounds: [120, 120, 10, 10]
     31          type: rect
     32          color: red
     33    -
     34      bounds: [0, 0, 0, 0]
     35      type: "stacking-context"
     36      clip-and-scroll: [2, 5]
     37      items:
     38        -
     39          bounds: [100, 100, 14, 14]
     40          type: rect
     41          color: blue