layout/reftests/text-svgglyphs/svg-glyph-objectgradient-zoom.svg

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg" reftest-zoom="0.5">
michael@0 2 <!--
michael@0 3 Test that gradients are inherited from the outer object under zoom
michael@0 4 -->
michael@0 5
michael@0 6 <style type="text/css"><![CDATA[
michael@0 7 @font-face {
michael@0 8 font-family: "Liberation";
michael@0 9 src:url("resources/svg.woff") format("woff");
michael@0 10 }
michael@0 11
michael@0 12 text {
michael@0 13 font-family: "Liberation";
michael@0 14 font-size: 200px;
michael@0 15 stroke-width: 5;
michael@0 16 }
michael@0 17 ]]></style>
michael@0 18
michael@0 19 <defs>
michael@0 20 <linearGradient id="grad" x1="0" y1="0" x2="800" y2="800" gradientUnits="userSpaceOnUse">
michael@0 21 <stop stop-color="purple" offset="0%" />
michael@0 22 <stop stop-color="lime" offset="100%" />
michael@0 23 </linearGradient>
michael@0 24 <radialGradient id="grad2" cx="250" cy="400" r="400" gradientUnits="userSpaceOnUse">
michael@0 25 <stop stop-color="red" offset="0%" />
michael@0 26 <stop stop-color="blue" offset="100%" />
michael@0 27 </radialGradient>
michael@0 28
michael@0 29 </defs>
michael@0 30
michael@0 31 <text x="0" y="200" fill="url(#grad)" stroke="url(#grad2)">N</text>
michael@0 32 <text x="300" y="200" fill="url(#grad)" stroke="url(#grad2)">O</text>
michael@0 33 <text x="0" y="500" fill="url(#grad)" stroke="url(#grad2)">P</text>
michael@0 34 <text x="300" y="500" fill="url(#grad)" stroke="url(#grad2)">Q</text>
michael@0 35 </svg>

mercurial