1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/text/dynamic-non-scaling-stroke.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 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 + <title>Test non-scaling-stroke repainting when ancestor transforms change</title> 1.10 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=875069 --> 1.11 +<style> 1.12 + .noscale { 1.13 + vector-effect: non-scaling-stroke; 1.14 + } 1.15 +</style> 1.16 + <script> 1.17 + 1.18 +function doTest() { 1.19 + document.getElementById("g").setAttribute("transform", "scale(2)"); 1.20 + document.documentElement.removeAttribute('class'); 1.21 +} 1.22 + 1.23 +document.addEventListener("MozReftestInvalidate", doTest, false); 1.24 +setTimeout(doTest, 4000); // fallback for running outside reftest 1.25 + 1.26 + </script> 1.27 + <g id="g" style="font: 16px sans-serif; text-rendering: geometricPrecision"> 1.28 + <text x="50" y="50" stroke="blue" stroke-width="5" class="noscale"><tspan class="noscale">hello</tspan> there</text> 1.29 + 1.30 + <text x="50" y="80" stroke="blue" stroke-width="2.5"><tspan class="noscale" stroke-width="5">hello</tspan> there</text> 1.31 + 1.32 + <text x="50" y="110" stroke="blue" stroke-width="5" class="noscale"><tspan stroke-width="2.5">hello</tspan> there</text> 1.33 + </g> 1.34 +</svg>