tor-browser

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

transition-property-037-manual.html (1155B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-property - padding-top</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com">
      6 <link rel="help" href="https://drafts.csswg.org/web-animations-1/#animation-type">
      7 <link rel="help" href="https://drafts.csswg.org/css-box-3/#padding-physical">
      8 <meta name="assert" content="Test checks that the 'padding-top' property is animatable.">
      9 <style>
     10  #test {
     11    padding-top: 1px;
     12    transition-duration: 2s;
     13    transition-property: padding-top;
     14    transition-timing-function: linear;
     15  }
     16  #ref {
     17    background-color: blue;
     18    height: 100px;
     19    width: 100px;
     20  }
     21 </style>
     22 <body>
     23  <p>Click the blue square below. Test passes if the blue square moves down gradually not immediately until it stops.</p>
     24  <div id="test">
     25    <div id="ref"></div>
     26  </div>
     27  <script>
     28    (function() {
     29      var test = document.querySelector("#test");
     30      test.addEventListener("click", function(evt) {
     31        test.setAttribute("style", "padding-top: 200px;");
     32      }, false);
     33    })();
     34  </script>
     35 </body>