1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-text-04.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" 1.5 + class="reftest-wait"> 1.6 + 1.7 + <title>Testcase for dynamic changes of rotate attributes</title> 1.8 + 1.9 + <!-- based on http://www.w3.org/TR/SVG/images/text/tspan05.svg --> 1.10 + 1.11 + <script type="text/javascript"> 1.12 + 1.13 +document.addEventListener("MozReftestInvalidate", go, false); 1.14 +setTimeout(go, 4000); // fallback for running outside reftest 1.15 + 1.16 +function go() { 1.17 + document.getElementById("parent").setAttribute("rotate", "5,15,25,35,45,55"); 1.18 + document.getElementById("child1").setAttribute("rotate", "-10,-20,-30,-40"); 1.19 + document.getElementById("child2").setAttribute("rotate", "70,60,50,40,30,20,10"); 1.20 + document.getElementById("child5").setAttribute("rotate", "-10"); 1.21 + document.documentElement.removeAttribute("class"); 1.22 +} 1.23 + 1.24 + </script> 1.25 + <text id="parent" font-size="32" x="40" y="40"> 1.26 + Not 1.27 + 1.28 + <tspan id="child1"> 1.29 + all characters 1.30 + 1.31 + <tspan id="child2"> 1.32 + in 1.33 + 1.34 + <tspan id="child3"> 1.35 + the 1.36 + </tspan> 1.37 + </tspan> 1.38 + 1.39 + <tspan x="40" y="90" id="child4"> 1.40 + text 1.41 + </tspan> 1.42 + 1.43 + have a 1.44 + </tspan> 1.45 + 1.46 + <tspan id="child5" rotate="90"> 1.47 + specified 1.48 + </tspan> 1.49 + 1.50 + rotation 1.51 + </text> 1.52 +</svg>