tor-browser

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

transition-property-028-manual.html (1124B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-property - max-width</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-sizing-3/#max-size-properties">
      8 <meta name="assert" content="Test checks that the 'max-width' property is animatable.">
      9 <style>
     10  #test {
     11    background-color: blue;
     12    height: 100px;
     13    max-width: 200px;
     14    transition-duration: 4s;
     15    transition-property: max-width;
     16    transition-timing-function: linear;
     17    width: 200px;
     18  }
     19 </style>
     20 <body>
     21  <p>Click the blue rectangle below. Test passes if the width of blue rectangle narrows gradually not immediately until it stops.</p>
     22  <div id="test"></div>
     23  <script>
     24    (function() {
     25      var test = document.querySelector("#test");
     26      test.addEventListener("click", function(evt) {
     27        test.setAttribute("style", "max-width: 100px;");
     28      }, false);
     29    })();
     30  </script>
     31 </body>