tor-browser

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

transition-property-044-manual.html (1223B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-property - word-spacing</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/#word-spacing-property">
      8 <meta name="flags" content="ahem">
      9 <meta name="assert" content="Test checks that the 'word-spacing' property is animatable.">
     10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11 <style>
     12  #test {
     13    font-family: ahem;
     14    transition-duration: 2s;
     15    transition-property: word-spacing;
     16    transition-timing-function: linear;
     17  }
     18 </style>
     19 <body>
     20  <p>Click any black rectangle below. Test passes if the second rectangle moves gradually not immediately from left to right until it stops and the first one does not move.</p>
     21  <div id="test">text text</div>
     22  <script>
     23    (function() {
     24      var test = document.querySelector("#test");
     25      test.addEventListener("click", function(evt) {
     26        test.setAttribute("style", "word-spacing: 40px;");
     27      }, false);
     28    })();
     29  </script>
     30 </body>