attribute-value-unaffected-by-animation-002.html (728B)
1 <!doctype html> 2 <title>An animation of an attribute ('orient') does not change the DOM attribute value</title> 3 <link rel="help" href="https://www.w3.org/TR/2001/REC-smil-animation-20010904/#BasicAnim"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <svg> 7 <marker orient="90"> 8 <set attributeName="orient" to="auto"/> 9 </rect> 10 </svg> 11 <script> 12 async_test(t => { 13 onload = t.step_func(() => { 14 requestAnimationFrame(t.step_func_done(() => { 15 let marker = document.querySelector('marker'); 16 marker.orientAngle.baseVal.valueInSpecifiedUnits = 180; 17 assert_equals(marker.getAttribute('orient'), '180'); 18 })); 19 }); 20 }); 21 </script>