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