1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-text-06.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 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" class="reftest-wait"> 1.9 + <script> 1.10 + var curXScale = 3; 1.11 + function sample() { 1.12 + var g = document.getElementById("g"); 1.13 + g.setAttribute("transform", "scale(" + curXScale + " 1)"); 1.14 + 1.15 + if (curXScale > 1) { 1.16 + curXScale -= 0.1; 1.17 + setTimeout("sample()", 1); 1.18 + } else { 1.19 + document.documentElement.removeAttribute('class'); 1.20 + } 1.21 + } 1.22 + document.addEventListener("MozReftestInvalidate", sample, false); 1.23 + setTimeout(sample, 4000); // fallback for running outside reftest 1.24 + </script> 1.25 + 1.26 + <rect width="100%" height="100%" fill="lime"/> 1.27 + <g font-family="sans-serif" font-weight="bold" font-size="120px" id="g"> 1.28 + <text y="100">A</text> 1.29 + <text y="250">V</text> 1.30 + </g> 1.31 + <rect width="100" height="100%" fill="lime"/> 1.32 +</svg>