spaces-at-end-of-path-data.html (919B)
1 <!DOCTYPE html> 2 3 <title>Allow trailing empty entry in value list</title> 4 <meta charset="utf-8"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <link rel="help" href="https://svgwg.org/specs/animations/#ValuesAttribute"> 8 <link rel="author" title="Edvard Thörnros" href="mailto:edvardt@opera.com"> 9 10 <svg viewbox="0 0 100 100"> 11 <path fill="#1EB287"> 12 <animate attributeName="d" 13 dur="1s" 14 repeatCount="indefinite" 15 values="M 0,0 L 50, 0 L 100,100 Z; 16 M 100,0 L 0, 100 L 50, 0 Z; "/> 17 </path> 18 </svg> 19 20 <script> 21 async_test(function(t) { 22 window.onload = t.step_func(function() { 23 window.requestAnimationFrame(t.step_func_done(function() { 24 let path = document.querySelector("path"); 25 assert_not_equals(window.getComputedStyle(path).d, "none"); 26 })); 27 }); 28 }); 29 </script>