transition-property-023-manual.html (1077B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Transitions Test: transition-property - line-height</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-inline/#line-height-property"> 8 <meta name="assert" content="Test checks that the 'line-height' property is animatable."> 9 <style> 10 #test { 11 line-height: 10px; 12 transition-duration: 4s; 13 transition-property: line-height; 14 transition-timing-function: linear; 15 } 16 </style> 17 <body> 18 <p>Click the 'FillerText' below. Test passes if the 'FillerText' moves down gradually not immediately until it stops.</p> 19 <div id="test">FillerTextFillerText</div> 20 <script> 21 (function() { 22 var test = document.querySelector("#test"); 23 test.addEventListener("click", function(evt) { 24 test.setAttribute("style", "line-height: 100px;"); 25 }, false); 26 })(); 27 </script> 28 </body>