tor-browser

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

allow-discrete-auto-inset.html (714B)


      1 <!DOCTYPE html>
      2 <title>CSS Transitions Test: discrete transition for auto inset</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-transitions-2/#transition-behavior-property">
      4 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      5 <style>
      6  #container {
      7    position: relative;
      8    width: 100px;
      9    height: 100px;
     10    background: green;
     11  }
     12  #abs {
     13    position: absolute;
     14    transition: top 1000s step-start allow-discrete;
     15    inset: 0px;
     16    background: red;
     17  }
     18  #abs.auto {
     19    top: auto;
     20  }
     21 </style>
     22 <p>Test passes if there is a filled green square.</p>
     23 <div id="container">
     24  <div id="abs"></div>
     25 </div>
     26 <script>
     27  abs.offsetTop;
     28  abs.className = "auto";
     29 </script>