layout/svg/crashtests/308917-1.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 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2
michael@0 3 <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 480 360" class="reftest-wait" onload="first();">
michael@0 4
michael@0 5 <script><![CDATA[
michael@0 6
michael@0 7 function first()
michael@0 8 {
michael@0 9 document.getElementById("z").appendChild(document.getElementById("pat1"));
michael@0 10 setTimeout(second, 30);
michael@0 11 }
michael@0 12
michael@0 13 function second()
michael@0 14 {
michael@0 15 document.getElementById("pat4").appendChild(document.getElementById("z"));
michael@0 16 document.documentElement.removeAttribute("class");
michael@0 17 }
michael@0 18
michael@0 19 ]]></script>
michael@0 20
michael@0 21
michael@0 22 <pattern patternUnits="userSpaceOnUse" id="pat1" x="10" y="10" width="20" height="20">
michael@0 23 <rect x="5" y="5" width="10" height="10" fill="red" />
michael@0 24 <rect x="10" y="10" width="10" height="10" fill="green" />
michael@0 25 </pattern>
michael@0 26 <rect x="25" y="10" width="430" height="60" stroke="black" fill="url(#pat1)" />
michael@0 27
michael@0 28 <pattern patternUnits="userSpaceOnUse" id="pat4" x="0" y="0" width="20" height="10">
michael@0 29 <rect x="0" y="0" width="10" height="10" fill="red" />
michael@0 30 <rect x="10" y="0" width="10" height="10" fill="blue" />
michael@0 31 </pattern>
michael@0 32 <text font-family="Arial" font-size="40" fill="none" stroke="url(#pat4)" stroke-width="2" x="25" y="275" id="z">Pattern on stroke</text>
michael@0 33
michael@0 34 </svg>
michael@0 35

mercurial