Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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
10 The very small graphic that has been scaled up to be visible should
11 invalidate correctly when moved.
12 -->
13 <script type="text/javascript">//<![CDATA[
15 function move_small_object()
16 {
17 document.getElementById('circle').setAttribute("transform", "translate(-.2, -.2)");
18 document.documentElement.removeAttribute('class');
19 }
21 document.addEventListener("MozReftestInvalidate", move_small_object, false);
22 setTimeout(move_small_object, 4000); // fallback for running outside reftest
24 //]]></script>
25 <rect width="100%" height="100%" fill="lime"/>
26 <g transform="scale(300, 300)">
27 <circle id="circle" cx=".05" cy=".05" r=".05"
28 fill="red" stroke="black" stroke-width="0.005" />
29 </g>
30 </svg>