tor-browser

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

transition-property-042-manual.html (1179B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-property - vertical-align</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://www.w3.org/TR/CSS22/visudet.html#propdef-vertical-align">
      8 <meta name="assert" content="Test checks that the 'vertical-align' property is animatable.">
      9 <style>
     10  #test {
     11    transition-duration: 2s;
     12    transition-property: vertical-align;
     13    transition-timing-function: linear;
     14    vertical-align: top;
     15  }
     16 </style>
     17 <body>
     18  <p>Click the cat image below. Test passes if the 'FillerText' moves down to the bottom of the cat image gradually not immediately.</p>
     19  <div id="test">
     20    FillerText<image id="ref" src="support/cat.png"></image>
     21  </div>
     22  <script>
     23    (function() {
     24      var ref = document.querySelector("#ref");
     25      ref.addEventListener("click", function(evt) {
     26        document.querySelector("#test").setAttribute("style", "vertical-align: bottom;");
     27      }, false);
     28    })();
     29  </script>
     30 </body>