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

All > SVG > Color > color-property-BE-02


File: color-property-BE-02
Author: Chris lilley
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
circlecx | cy | r | style |
defs
descid |
gid | style |
linearGradientid | style |
pathd | style |
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">color-property-BE-02</title>
     <desc id="test-desc">Test that viewer has the basic capability to process the color property</desc>
     <g id="test-body-content">
          <defs>
               <linearGradient id="grad" style="color:red;">
                    <stop offset="5%" style="stop-color:#60F;"/>
                    <stop offset="50%" style="stop-color:currentColor;"/>
                    <stop offset="95%" style="stop-color:#FF6;"/>
               </linearGradient>
          </defs>
          <g style="color:red;">
               <g style="color:inherit;fill:none;stroke:none;">
                    <circle cx="120" cy="90" r="60" style="fill:currentColor;"/>
                    <circle cx="330" cy="90" r="60" style="stroke:currentColor;stroke-width:4;"/>
               </g>
          </g>
          <g style="color:blue;">
               <g style="color:inherit;fill:none;stroke:none;">
                    <rect x="60" y="240" width="330" height="80" style="fill:url(#grad);"/>
               </g>
          </g>
          <g style="font-size:15;fill:black;">
               <text x="130" y="170">fill</text>
               <text x="280" y="170">stroke</text>
               <text x="190" y="230">stop-color</text>
          </g>
     </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">color-property-BE-02</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: conference call service, VoIP Internettelefonie, DSL, SDSL, ADSL, answering service