tor-browser

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

transition-property-018-manual.html (1077B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-property - color</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-color/#the-color-property">
      8 <meta name="assert" content="Test checks that the 'color' property is animatable.">
      9 <style>
     10  #test {
     11    color: red;
     12    transition-duration: 2s;
     13    transition-property: color;
     14    transition-timing-function: linear;
     15  }
     16 </style>
     17 <body>
     18  <p>Click the 'FillerText' whose color is red below. Test passes if the color transforms to green gradually not immediately.</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", "color: green;");
     27      }, false);
     28    })();
     29  </script>
     30 </body>