layout/reftests/svg/dynamic-small-object-scaled-up-01.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/dynamic-small-object-scaled-up-01.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait">
     1.9 +  <title>Test invalidation of very small objects that have been scaled up</title>
    1.10 +  <!--
    1.11 +    From https://bugzilla.mozilla.org/show_bug.cgi?id=465996
    1.12 +
    1.13 +    The very small graphic that has been scaled up to be visible should
    1.14 +    invalidate correctly when moved.
    1.15 +  -->
    1.16 +  <script type="text/javascript">//<![CDATA[
    1.17 +
    1.18 +function move_small_object()
    1.19 +{
    1.20 +  document.getElementById('circle').setAttribute("transform", "translate(-.2, -.2)");
    1.21 +  document.documentElement.removeAttribute('class');
    1.22 +}
    1.23 +
    1.24 +document.addEventListener("MozReftestInvalidate", move_small_object, false);
    1.25 +setTimeout(move_small_object, 4000); // fallback for running outside reftest
    1.26 +
    1.27 +  //]]></script>
    1.28 +  <rect width="100%" height="100%" fill="lime"/>
    1.29 +  <g transform="scale(300, 300)">
    1.30 +    <circle id="circle" cx=".05" cy=".05" r=".05"
    1.31 +            fill="red" stroke="black" stroke-width="0.005" />
    1.32 +  </g>
    1.33 +</svg>

mercurial