tor-browser

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

test_bug580685.html (978B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=580685
      5 -->
      6 <head>
      7  <title>Test for Bug 580685</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10 </head>
     11 <body>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=580685">Mozilla Bug 580685</a>
     13 <p id="display">
     14  <iframe id="f" srcdoc="<body style='outline-offset: 1rem'>">
     15  </iframe>
     16 </p>
     17 <div id="content" style="display: none">
     18  
     19 </div>
     20 <pre id="test">
     21 <script type="application/javascript">
     22 
     23 /** Test for Bug 580685 */
     24 SimpleTest.waitForExplicitFinish()
     25 addLoadEvent(function() {
     26  var doc = $("f").contentDocument;
     27  var b = doc.body;
     28  doc.removeChild(doc.documentElement);
     29  is(doc.defaultView.getComputedStyle(b).outlineOffset,
     30     doc.defaultView.getComputedStyle(b).fontSize,
     31     "1rem did not compute correctly");
     32  SimpleTest.finish();
     33 });
     34 
     35 
     36 
     37 
     38 </script>
     39 </pre>
     40 </body>
     41 </html>