keypoints-attribute-trailing-semi.html (770B)
1 <!doctype html> 2 <title>A trailing semicolon is allowed in the 'keyPoints' attribute</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="/common/rendering-utils.js"></script> 6 <svg> 7 <rect width="100" height="100" x="100" fill="blue"> 8 <animateMotion dur="10ms" fill="freeze" 9 values="0,0; -100,0" keyTimes="0; 1" keyPoints="0; 1;"/> 10 </rect> 11 </svg> 12 <script> 13 promise_test(async t => { 14 const animation = document.querySelector('rect > animateMotion'); 15 const watcher = new EventWatcher(t, animation, 'endEvent'); 16 await watcher.wait_for('endEvent'); 17 await waitForAtLeastOneFrame(); 18 assert_equals(animation.targetElement.getCTM().e, -100); 19 }); 20 </script>