layout/reftests/svg/text/dynamic-non-scaling-stroke.svg

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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" class="reftest-wait">
     6   <title>Test non-scaling-stroke repainting when ancestor transforms change</title>
     7   <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=875069 -->
     8 <style>
     9   .noscale {
    10     vector-effect: non-scaling-stroke;
    11   }
    12 </style>
    13   <script>
    15 function doTest() {
    16   document.getElementById("g").setAttribute("transform", "scale(2)");
    17   document.documentElement.removeAttribute('class');
    18 }
    20 document.addEventListener("MozReftestInvalidate", doTest, false);
    21 setTimeout(doTest, 4000); // fallback for running outside reftest
    23   </script>
    24   <g id="g" style="font: 16px sans-serif; text-rendering: geometricPrecision">
    25     <text x="50" y="50" stroke="blue" stroke-width="5" class="noscale"><tspan class="noscale">hello</tspan> there</text>
    27     <text x="50" y="80" stroke="blue" stroke-width="2.5"><tspan class="noscale" stroke-width="5">hello</tspan> there</text>
    29     <text x="50" y="110" stroke="blue" stroke-width="5" class="noscale"><tspan stroke-width="2.5">hello</tspan> there</text>
    30   </g>
    31 </svg>

mercurial