transition-property-033-manual.html (1162B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Transitions Test: transition-property - outline-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-ui-3/#outline-width"> 8 <meta name="assert" content="Test checks that the 'outline-width' property is animatable."> 9 <style> 10 #test { 11 height: 100px; 12 margin-left: 20px; 13 outline-style: solid; 14 outline-width: 2px; 15 transition-duration: 2s; 16 transition-property: outline-width; 17 transition-timing-function: linear; 18 width: 100px; 19 } 20 </style> 21 <body> 22 <p>Click the blank square with black border below. Test passes if the width of border increases gradually not immediately until it stops.</p> 23 <div id="test"></div> 24 <script> 25 (function() { 26 var test = document.querySelector("#test"); 27 test.addEventListener("click", function(evt) { 28 test.setAttribute("style", "outline-width: 10px;"); 29 }, false); 30 })(); 31 </script> 32 </body>