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

All > SVG > Coordinates > coords-unitsProc-BE-04


File: coords-unitsProc-BE-04
Author: Vincent Hardy
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
circlecx | cy | r | style |
descid |
gid | style | transform |
linestyle | x1 | x2 | y1 | y2 |
pathd | style |
rectheight | id | style | width | x | y |
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">coords-unitsProc-BE-04</title>
     <desc id="test-desc">This test validates the processing rules for converting coordinates and length in CSS units to user space coordinate values.</desc>
     <g id="test-body-content">
          <text x="45" y="65">CSS pixel coordinate to user space conversion</text>
          <g transform="translate(15, 45) scale(2)">
               <circle cx="7.5" cy="7.5" r="2.5" style="fill:black;"/>
               <circle cx="7.5px" cy="7.5px" r="1.5px" style="fill:red;"/>
          </g>
          <text x="45" y="85">Percentage coordinates to user space conversion</text>
          <g transform="translate(15, 65) scale(2)">
               <circle cx="7.5" cy="7.5" r="2.5" style="fill:black;"/>
               <circle cx="1.667%" cy="1.667%" r=".3333%" style="fill:red;"/>
          </g>
          <text x="45" y="115">CSS width/height to user space conversion</text>
          <g transform="translate(30, 100) scale(2)">
               <rect x="-5" y="0" width="10" height="5" style="fill:black;"/>
               <rect x="-5" y="5" width="10px" height="5px" style="fill:red;"/>
          </g>
          <text x="45" y="145">Percentage width/height to user space conversion</text>
          <g transform="translate(30, 130) scale(2)">
               <rect x="-5" y="0" width="10" height="5" style="fill:black;"/>
               <rect x="-5" y="5" width="2.222%" height="1.111%" style="fill:red;"/>
          </g>
          <text x="30" y="200">CSS and percentage length conversion</text>
          <g transform="translate(30, 220) skewX(45) scale(2)">
               <circle cx="0" cy="0" r="3.536" style="fill:black;"/>
               <circle cx="10" cy="0" r="3.536px" style="fill:red;"/>
               <circle cx="20" cy="0" r=".785%" style="fill:green;"/>
               <line x1="-3.536" y1="-3.536" x2="33" y2="-3.536" style="fill:none;stroke:#cccccc;stroke-width:.5;"/>
               <line x1="-3.536" y1="3.536" x2="33" y2="3.536" style="fill:none;stroke:#cccccc;stroke-width:.5;"/>
          </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">coords-unitsProc-BE-04</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