tor-browser

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

test_bug93077-2.html (825B)


      1 <!-- Testing quirks mode. -->
      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 <pre id="test">
     20 <script type="application/javascript">
     21 /** Test for Bug 93077 */
     22 ["#top", "#TOP", "#Top"].forEach(function(fragid) {
     23  document.getElementById("below").scrollIntoView()
     24  isnot(window.scrollY, 0)
     25  location.hash = fragid
     26  is(window.scrollY, 0)
     27 })
     28 </script>
     29 </pre>
     30 </body>
     31 </html>