tor-browser

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

transition-property-020-manual.html (1112B)


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