tor-browser

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

test_bug95530.html (1325B)


      1 <!DOCTYPE html>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=95530
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 95530</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 95530 */
     14  function run() {
     15    is(document.compatMode, "CSS1Compat", "Ensure we are in standards mode, not quirks mode.");
     16 
     17    var body = document.getElementsByTagName("body");
     18 
     19    is(computedStyle(body[0],"margin-top"), "100px", "Ensure margin-top matches topmargin");
     20    is(computedStyle(body[0],"margin-bottom"), "150px", "Ensure margin-bottom matches bottommargin");
     21    is(computedStyle(body[0],"margin-left"), "23px", "Ensure margin-left matches leftmargin");
     22    is(computedStyle(body[0],"margin-right"), "64px", "Ensure margin-right matches rightmargin");
     23    SimpleTest.finish();
     24  }
     25  SimpleTest.waitForExplicitFinish();
     26  window.addEventListener("load", run);
     27  </script>
     28 </head>
     29 <body topmargin="100" bottommargin="150" leftmargin="23" rightmargin="64">
     30 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=95530">Mozilla Bug 95530</a>
     31 <p id="display"></p>
     32 <div id="content" style="display: none">
     33 
     34 </div>
     35 <pre id="test">
     36 </pre>
     37 </body>
     38 </html>