transition-property-015-manual.html (1137B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Transitions Test: transition-property - border-spacing</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://www.w3.org/TR/CSS22/tables.html#separated-borders"> 8 <meta name="assert" content="Test checks that the 'border-spacing' property is animatable."> 9 <style> 10 #test { 11 border-spacing: 10px; 12 transition-duration: 2s; 13 transition-property: border-spacing; 14 transition-timing-function: linear; 15 } 16 </style> 17 <body> 18 <p>Click the 'FillerText' below. Test passes if the outermost border of 'FillerText' grows gradually not immediately until it stops.</p> 19 <table id="test" border="1"> 20 <tr><td>FillerText</td></tr> 21 </table> 22 <script> 23 (function() { 24 var test = document.querySelector("#test"); 25 test.addEventListener("click", function(evt) { 26 test.setAttribute("style", "border-spacing: 40px;"); 27 }, false); 28 })(); 29 </script> 30 </body>