tor-browser

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

cross-origin-tall-iframe-rendering-ref.html (647B)


      1 <!DOCTYPE html>
      2 <meta name="viewport" content="width=device-width,initial-scale=1">
      3 <title>Intersection observer with cross-origin iframe and tall viewport</title>
      4 <style>
      5 :root { scrollbar-width: none }
      6 .spacer {
      7  height: calc(200vh + 100px);
      8 }
      9 .frame {
     10  width: 160px;
     11  height: 5100px;
     12  outline: 1px solid;
     13 
     14  > .spacer {
     15    height: 5000px;
     16  }
     17 
     18  > .target {
     19    height: 100px;
     20    background-color: green;
     21  }
     22 }
     23 </style>
     24 <div class="spacer"></div>
     25 <div class="frame"><div class="spacer"></div><div class="target"></div></div>
     26 <div class="spacer"></div>
     27 <script>
     28 document.querySelector(".frame").scrollIntoView({ block: "end" });
     29 </script>