layout/reftests/svg/non-scaling-stroke-02-ref.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.)

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" overflow="hidden">
michael@0 2 <style type="text/css" >
michael@0 3 rect {
michael@0 4 stroke-width: 30px;
michael@0 5 }
michael@0 6 </style>
michael@0 7 <defs>
michael@0 8 <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
michael@0 9 <stop offset="0" stop-color="blue"/>
michael@0 10 <stop offset="1" stop-color="yellow"/>
michael@0 11 </linearGradient>
michael@0 12 <linearGradient id="grad2" x1="360" y1="500" x2="560" y2="600" gradientUnits="userSpaceOnUse" gradientTransform="scale(0.25,1)">
michael@0 13 <stop offset="0" stop-color="blue"/>
michael@0 14 <stop offset="1" stop-color="yellow"/>
michael@0 15 </linearGradient>
michael@0 16 <pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse" patternTransform="scale(1,0.5), skewX(45)">
michael@0 17 <rect x="0" y="0" width="20" height="20" fill="red"/>
michael@0 18 <rect x="20" y="0" width="20" height="20" fill="green"/>
michael@0 19 <rect x="0" y="20" width="20" height="20" fill="blue"/>
michael@0 20 <rect x="20" y="20" width="20" height="20" fill="yellow"/>
michael@0 21 </pattern>
michael@0 22 <rect id="rect" width="200" height="100" fill="none"/>
michael@0 23 </defs>
michael@0 24
michael@0 25 <rect x="40" y="40" width="200" height="100" fill="none" stroke="url(#grad1)"/>
michael@0 26
michael@0 27 <rect x="40" y="200" width="200" height="100" fill="none" stroke="url(#grad2)" />
michael@0 28
michael@0 29 <use xlink:href="#rect" transform="translate(40, 360)" stroke="url(#pattern)"/>
michael@0 30
michael@0 31 <use xlink:href="#rect" x="40" y="520" stroke="green"/>
michael@0 32
michael@0 33 </svg>

mercurial