layout/reftests/svg/dynamic-text-04.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
     2      class="reftest-wait">
     4   <title>Testcase for dynamic changes of rotate attributes</title>
     6   <!-- based on http://www.w3.org/TR/SVG/images/text/tspan05.svg -->
     8   <script type="text/javascript">
    10 document.addEventListener("MozReftestInvalidate", go, false);
    11 setTimeout(go, 4000); // fallback for running outside reftest
    13 function go() {
    14   document.getElementById("parent").setAttribute("rotate", "5,15,25,35,45,55");
    15   document.getElementById("child1").setAttribute("rotate", "-10,-20,-30,-40");
    16   document.getElementById("child2").setAttribute("rotate", "70,60,50,40,30,20,10");
    17   document.getElementById("child5").setAttribute("rotate", "-10");
    18   document.documentElement.removeAttribute("class");
    19 }
    21   </script>
    22   <text id="parent" font-size="32" x="40" y="40">
    23     Not
    25     <tspan id="child1">
    26       all characters
    28       <tspan id="child2">
    29         in
    31         <tspan id="child3">
    32           the
    33         </tspan>
    34       </tspan>
    36       <tspan x="40" y="90" id="child4">
    37         text
    38       </tspan>
    40       have a
    41     </tspan>
    43     <tspan id="child5" rotate="90">
    44       specified
    45     </tspan>
    47     rotation
    48   </text>
    49 </svg>

mercurial