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