tor-browser

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

test_bug1406102.html (978B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 1406102</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      8  <style type="text/css">
      9    html {
     10        height: 100%;
     11    }
     12    body {
     13        height: 2866px;
     14    }
     15  </style>
     16 </head>
     17 <body>
     18 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1406102">Mozilla Bug 1406102</a>
     19 <p id="display"></p>
     20 <div id="content">
     21  <div id="target"></div>
     22 </div>
     23 <pre id="test">
     24 <script type="application/javascript">
     25 
     26  let observer = new IntersectionObserver(function (changes) {
     27    ok(changes[0].intersectionRatio >= 0,
     28       'intersectionRatio should be equal to or greater than zero');
     29    if (changes[0].intersectionRatio > 0) {
     30      SimpleTest.finish();
     31    }
     32  });
     33  observer.observe(document.body);
     34  SimpleTest.waitForExplicitFinish();
     35 
     36 </script>
     37 </pre>
     38 <div id="log">
     39 </div>
     40 </body>
     41 </html>