layout/reftests/svg/text-style-01c.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 <!--
     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" onload="m();">
     7 <title>Testcase for style changes</title>
     9 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=395155 -->
    11 <style id="s" type="text/css">
    12 tspan { fill: red; }
    13 </style>
    15 <script>
    16 function m()
    17 {
    18   var s = document.getElementById("s");
    19   s.firstChild.data = s.firstChild.data.replace("red", "green");
    20 }
    21 </script>
    23 <text>
    24   <tspan x="10" y="50">
    25     This should be green
    26   </tspan>
    27 </text>
    29 </svg>

mercurial