layout/reftests/svg/use-02-extref-ref.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <svg xmlns="http://www.w3.org/2000/svg">
michael@0 3 <g id="testContent" color="forestgreen">
michael@0 4 <defs>
michael@0 5 <linearGradient id="linearGrad" gradientUnits="objectBoundingBox" y1="0" x1="0" y2="1" x2="1">
michael@0 6 <stop offset="0%" stop-color="royalblue"/>
michael@0 7 <stop offset="33%" stop-color="white"/>
michael@0 8 <stop offset="50%" stop-color="darkblue"/>
michael@0 9 <stop offset="66%" stop-color="white"/>
michael@0 10 <stop offset="100%" stop-color="royalblue"/>
michael@0 11 </linearGradient>
michael@0 12
michael@0 13 <radialGradient id="radialGrad" gradientUnits="objectBoundingBox" cx="0.5" cy="0.5" r="0.5" fx="0.15" fy="0.15">
michael@0 14 <stop offset="000%" stop-color="orange" />
michael@0 15 <stop offset="033%" stop-color="red" />
michael@0 16 <stop offset="050%" stop-color="gold" />
michael@0 17 <stop offset="066%" stop-color="red" />
michael@0 18 <stop offset="100%" stop-color="orange" />
michael@0 19 </radialGradient>
michael@0 20 </defs>
michael@0 21
michael@0 22 <rect x="0" y="0" width="200" height="125" stroke="none"
michael@0 23 fill="url(#linearGrad)"/>
michael@0 24 <rect x="200" y="0" width="200" height="125" stroke="none"
michael@0 25 fill="currentColor"/>
michael@0 26 <rect x="0" y="125" width="200" height="125" stroke="none"
michael@0 27 fill="currentColor"/>
michael@0 28 <rect x="200" y="125" width="200" height="125" stroke="none" fill="url(#radialGrad)" />
michael@0 29 </g>
michael@0 30 </svg>

mercurial