test_smilAdditionFallback.html (850B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <head> 4 <script src="/tests/SimpleTest/SimpleTest.js"></script> 5 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 6 </head> 7 <p id=display></p> 8 <div id=content> 9 <svg id=svg> 10 <!-- These two animations will have a default duration of indefinite which means 11 they will keep producing their first value forever --> 12 <animate calcMode="discrete" attributeName="height" by="10" dur="1s" 13 fill="freeze"/> 14 <animate calcMode="discrete" attributeName="height" by="10" dur="1s" 15 fill="freeze"/> 16 </svg> 17 </div> 18 <pre id="test"> 19 <script> 20 'use strict'; 21 22 SimpleTest.waitForExplicitFinish(); 23 24 window.addEventListener('load', () => { 25 const svg = document.getElementById('svg'); 26 is(getComputedStyle(svg).height, '0px', 'Computed height should be zero'); 27 SimpleTest.finish(); 28 }); 29 </script> 30 </pre>