tor-browser

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

transition-property-039-manual.html (1058B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-property - text-indent</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-text-3/#text-indent-property">
      8 <meta name="assert" content="Test checks that the 'text-indent' property is animatable.">
      9 <style>
     10  #test {
     11    transition-duration: 2s;
     12    transition-property: text-indent;
     13    transition-timing-function: linear;
     14  }
     15 </style>
     16 <body>
     17  <p>Click the 'FillerText' below. Test passes if the 'FillerText' moves gradually not immediately from left to right until it stops.</p>
     18  <div id="test">FillerText</div>
     19  <script>
     20    (function() {
     21      var test = document.querySelector("#test");
     22      test.addEventListener("click", function(evt) {
     23        test.setAttribute("style", "text-indent: 200px;");
     24      }, false);
     25    })();
     26  </script>
     27 </body>