tor-browser

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

test_bug990340.html (1247B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=990340
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 990340</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 990340 */
     14 
     15  function testbug990340() {
     16    ok(document.querySelector('#bug990340 span').clientHeight < 100,
     17       "'height' is in transition")
     18    SimpleTest.finish();
     19  }
     20 
     21  SimpleTest.waitForExplicitFinish();
     22  </script>
     23 </head>
     24 <body>
     25 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=990340">Mozilla Bug 990340</a>
     26 <p id="display"></p>
     27 <div id="content" style="display: none">
     28 
     29 </div>
     30 <pre id="test">
     31 <style type="text/css">
     32 
     33 #bug990340::before {
     34    content: ":before";
     35 }
     36 
     37 #bug990340 span {
     38    display: inline-block;
     39    border:1px solid blue;
     40    height: 20px;
     41    transition: height 30s;
     42 }
     43 
     44 #bug990340.s span {
     45    height: 100px;
     46 }
     47 </style>
     48 <div id="bug990340" style="overflow:scroll">
     49    <span>Transition height</span>
     50 </div>
     51 </pre>
     52 
     53 <script>
     54 document.body.offsetHeight;
     55 document.querySelector('#bug990340').className='s';
     56 testbug990340()
     57 </script>
     58 
     59 </body>
     60 </html>