tor-browser

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

transition-property-036-manual.html (1221B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-property - padding-right</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-right' property is animatable.">
      9 <style>
     10  #test {
     11    padding-right: 0px;
     12    transition-duration: 2s;
     13    transition-property: padding-right;
     14    transition-timing-function: linear;
     15  }
     16  #ref {
     17    background-color: blue;
     18    float: right;
     19    height: 100px;
     20    width: 100px;
     21  }
     22 </style>
     23 <body>
     24  <p>Click the blue square below. Test passes if the blue square moves gradually not immediately from right to left until it stops.</p>
     25  <div id="test">
     26    <div id="ref"></div>
     27  </div>
     28  <script>
     29    (function() {
     30      var ref = document.querySelector("#ref");
     31      ref.addEventListener("click", function(evt) {
     32        document.querySelector("#test").setAttribute("style", "padding-right: 200px;");
     33      }, false);
     34    })();
     35  </script>
     36 </body>