layout/reftests/svg/gradient-live-01-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.

     1 <svg xmlns="http://www.w3.org/2000/svg" 
     2      xmlns:xlink="http://www.w3.org/1999/xlink" font-size="80">
     4 <linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
     5   <stop id="green"   stop-color="#00dd00"   offset="0"/>
     6   <stop id="blue"    stop-color="#0000dd"   offset="0.5"/>
     7   <stop id="magenta" stop-color="magenta"   offset="1"/>
     8 </linearGradient>
     9 <rect x="20" y="20" width="440" height="80" fill="url(#grad1)" />
    11 <linearGradient id="grad2" xlink:href="#grad1"/>
    12 <rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
    13 <text x="20" y="300" width="440" height="80" fill="url(#grad1)">gradiation</text>
    14 <text x="20" y="400" width="440" height="80" fill="url(#grad2)">gradiation</text>
    16 </svg>

mercurial