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