1243409-1.html (584B)
1 <!DOCTYPE html> 2 <title>Testcase for bug 1243409</title> 3 <html class="reftest-wait"> 4 <body> 5 <svg> 6 <g transform="matrix(1, 0, 0, 1, 0, 30)"> 7 <rect fill-opacity="1" height="10" width="20" fill="#000"></rect> 8 </g> 9 </svg> 10 <script> 11 var m = document.querySelector('svg > g').transform.baseVal[0].matrix; 12 var times = 2; 13 14 function doTest() { 15 if(!times--) { 16 document.documentElement.removeAttribute("class"); 17 return; 18 } 19 20 m.e += 10; 21 m.f -= 10; 22 window.requestAnimationFrame(doTest); 23 } 24 25 document.addEventListener("MozReftestInvalidate", doTest); 26 </script> 27 </body> 28 </html>