ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Gradient Patterns > gradPatt-referenc-BE-08


File: gradPatt-referenc-BE-08
Author: Haroon Sheikh
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style |
linearGradientgradientUnits | id | x1 | x2 | xlink:href | y1 | y2 |
pathd | style |
patternheight | id | patternUnits | width | x | xlink:href | y |
radialGradientcx | cy | fx | fy | gradientUnits | id | r | xlink:href |
rectheight | id | style | width | x | y |
stopoffset | style |
svgheight | id | width |
textstyle | x | y |
titleid |

Source

<svg id="svg-root" width="450" height="450" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
     <title id="test-title">gradPatt-referenc-BE-08</title>
     <desc id="test-desc">Test that the viewer can handle the xlink:href attribute on linear, radial gradients and patterns.</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:15;" x="10" y="25">Testing xlink:href references to other paint servers</text>
          <linearGradient id="Grad1a" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
               <stop style="stop-color:blue;" offset="0"/>
               <stop style="stop-color:red;" offset="1"/>
          </linearGradient>
          <linearGradient id="Grad1b" xlink:href="#Grad1a"/>
          <rect x="10" y="35" width="210" height="80" style="fill:url(#Grad1a);"/>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="130">Linear gradient.</text>
          <rect x="230" y="35" width="210" height="80" style="fill:url(#Grad1b);"/>
          <text style="font-family:Helvetica;font-size:12;" x="230" y="130">Referencing gradient on left.</text>
          <radialGradient id="Grad2a" gradientUnits="objectBoundingBox" cx=".5" cy=".5" fx=".5" fy=".5" r=".5">
               <stop style="stop-color:black;" offset="0"/>
               <stop style="stop-color:orange;" offset="1"/>
          </radialGradient>
          <radialGradient id="Grad2b" xlink:href="#Grad2a" gradientUnits="userSpaceOnUse" cx="335" cy="185" fx="335" fy="185" r="40"/>
          <rect x="10" y="145" width="210" height="80" style="fill:url(#Grad2a);"/>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="240">Radial gradient.</text>
          <rect x="230" y="145" width="210" height="80" style="fill:url(#Grad2b);"/>
          <text style="font-family:Helvetica;font-size:12;" x="230" y="240">Referencing gradient on left.</text>
          <pattern id="Pat3a" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
               <rect x="0" y="0" width="10" height="10" style="fill:red;"/>
               <rect x="10" y="0" width="10" height="10" style="fill:green;"/>
               <rect x="0" y="10" width="10" height="10" style="fill:blue;"/>
               <rect x="10" y="10" width="10" height="10" style="fill:yellow;"/>
          </pattern>
          <pattern id="Pat3b" xlink:href="#Pat3a" width="20" height="20"/>
          <rect x="10" y="255" width="210" height="80" style="fill:url(#Pat3a);"/>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="350">Pattern fill.</text>
          <rect x="230" y="255" width="210" height="80" style="fill:url(#Pat3b);"/>
          <text style="font-family:Helvetica;font-size:12;" x="230" y="350">Referencing pattern fill on left.</text>
     </g>
     <g id="test-legend" style="fill:black;font-family:Helvetica;font-size:10;">
          <rect x="10" y="390" width="275" height="50" style="fill:none;stroke:#000000;"/>
          <path style="fill:none;stroke:#000000;" d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
          <text x="25" y="401">Scalable Vector Graphics (SVG) Conformance Suite</text>
          <a xlink:href="copyright-documents-19990405.html">
               <text x="12" y="437" style="fill:blue;">Copyright 2000 W3C. All Rights Reserved.</text>
          </a>
          <text style="font-size:12;" x="35" y="420">gradPatt-referenc-BE-08</text>
          <text style="font-size:10;" x="210" y="417">$Revision: 1.1 $</text>
          <text style="font-size:10;" x="210" y="435">Release 2.0</text>
          <rect id="test-frame" x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
     </g>
</svg>



Sponsored links: Domain Names, VoIP Internettelefonie, DSL, SDSL, ADSL, UNLIMITED Web Hosting by HostDepartment, conference call service, answering service