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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 4 -->
michael@0 5 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
michael@0 6 <title>Test non-scaling-stroke repainting when ancestor transforms change</title>
michael@0 7 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=875069 -->
michael@0 8 <style>
michael@0 9 .noscale {
michael@0 10 vector-effect: non-scaling-stroke;
michael@0 11 }
michael@0 12 </style>
michael@0 13 <script>
michael@0 14
michael@0 15 function doTest() {
michael@0 16 document.getElementById("g").setAttribute("transform", "scale(2)");
michael@0 17 document.documentElement.removeAttribute('class');
michael@0 18 }
michael@0 19
michael@0 20 document.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 21 setTimeout(doTest, 4000); // fallback for running outside reftest
michael@0 22
michael@0 23 </script>
michael@0 24 <g id="g" style="font: 16px sans-serif; text-rendering: geometricPrecision">
michael@0 25 <text x="50" y="50" stroke="blue" stroke-width="5" class="noscale"><tspan class="noscale">hello</tspan> there</text>
michael@0 26
michael@0 27 <text x="50" y="80" stroke="blue" stroke-width="2.5"><tspan class="noscale" stroke-width="5">hello</tspan> there</text>
michael@0 28
michael@0 29 <text x="50" y="110" stroke="blue" stroke-width="5" class="noscale"><tspan stroke-width="2.5">hello</tspan> there</text>
michael@0 30 </g>
michael@0 31 </svg>

mercurial