1243409-1.html 584 B

1234567891011121314151617181920212223242526272829
  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. function doTest() {
  14. if(!times--) {
  15. document.documentElement.removeAttribute("class");
  16. return;
  17. }
  18. m.e += 10;
  19. m.f -= 10;
  20. window.requestAnimationFrame(doTest);
  21. }
  22. document.addEventListener("MozReftestInvalidate", doTest);
  23. </script>
  24. </body>
  25. </html>