tor-browser

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

test_bug93077-3.html (869B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=93077
      5 -->
      6 <head>
      7  <title>Test for Bug 93077</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10  <style>
     11    #filler { height: 200cm; background: papayawhip; }
     12  </style>
     13 </head>
     14 <body>
     15 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=93077">Mozilla Bug 93077</a>
     16 <p id="display"></p>
     17 <div id=filler>...</div>
     18 <p id=below></p>
     19 <p id=top>Top</p>
     20 <pre id="test">
     21 <script type="application/javascript">
     22 /** Test for Bug 93077 */
     23 ["#TOP", "#Top"].forEach(function(fragid) {
     24  document.getElementById("below").scrollIntoView()
     25  isnot(window.scrollY, 0)
     26  location.hash = fragid
     27  is(window.scrollY, 0)
     28 })
     29 location.hash = "#top"
     30 isnot(window.scrollY, 0)
     31 </script>
     32 </pre>
     33 </body>
     34 </html>