dynamic-small-object-scaled-up-01.svg 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait">
  6. <title>Test invalidation of very small objects that have been scaled up</title>
  7. <!--
  8. From https://bugzilla.mozilla.org/show_bug.cgi?id=465996
  9. The very small graphic that has been scaled up to be visible should
  10. invalidate correctly when moved.
  11. -->
  12. <script type="text/javascript">//<![CDATA[
  13. function move_small_object()
  14. {
  15. document.getElementById('circle').setAttribute("transform", "translate(-.2, -.2)");
  16. document.documentElement.removeAttribute('class');
  17. }
  18. document.addEventListener("MozReftestInvalidate", move_small_object, false);
  19. setTimeout(move_small_object, 4000); // fallback for running outside reftest
  20. //]]></script>
  21. <rect width="100%" height="100%" fill="lime"/>
  22. <g transform="scale(300, 300)">
  23. <circle id="circle" cx=".05" cy=".05" r=".05"
  24. fill="red" stroke="black" stroke-width="0.005" />
  25. </g>
  26. </svg>