tor-browser

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

test_bug470769.html (867B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=470769
      5 -->
      6 <head>
      7  <title>Test for Bug 470769</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=470769">Mozilla Bug 470769</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15  
     16 </div>
     17 <pre id="test">
     18 <script type="application/javascript">
     19 
     20 /** Test for Bug 470769 */
     21 
     22 var e = document.getElementById("display");
     23 e.setAttribute("style", "z-index: 2147483647"); // maximum signed 32-bit
     24 is(e.style.zIndex, "2147483647", "element.style should roundtrip correctly");
     25 is(window.getComputedStyle(e).zIndex, "2147483647",
     26   "getComputedStyle should roundtrip correctly");
     27 
     28 </script>
     29 </pre>
     30 </body>
     31 </html>