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

All > SVG > Coordinates > coords-units-BE-01


File: coords-units-BE-01
Author: Vincent Hardy
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style | transform |
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-units-BE-01</title>
     <desc id="test-desc">Validates simple initial viewport size and basic units handling.</desc>
     <g id="test-body-content">
          <g id="viewport-initial-size-test">
               <rect x="0px" y="0px" width="2000px" height="2000px" style="fill:red;"/>
               <rect x="0px" y="0px" width="450px" height="450px" style="fill:white;"/>
          </g>
          <text x="125" y="20" style="fill:black;font-size:12;font-family:Helvetica;">Initial viewport and CSS units test</text>
          <g id="units-test" style="fill:black;font-size:10pt;" transform="translate(0, 60)">
               <text x="20" y="18">200</text>
               <text x="230" y="20">User space units (no specifier)</text>
               <rect x="20" y="20" width="200" height="1"/>
               <text x="20" y="38">200 px</text>
               <text x="230" y="40">Pixels (px)</text>
               <rect x="20" y="40" width="200px" height="1"/>
               <text x="20" y="58">20 em = 200 px (font-size=10px)</text>
               <text x="230" y="60">Relative to font size (em)</text>
               <g style="font-size:10px;">
                    <rect x="20" y="60" width="20em" height="1"/>
               </g>
               <text x="20" y="78">40 ex</text>
               <text x="230" y="80">Relative to font x-height (ex)</text>
               <g style="font-size:10px;">
                    <rect x="20" y="80" width="40ex" height="1"/>
               </g>
               <text x="20" y="98">44.45% = 200 px</text>
               <text x="230" y="100">Percentage (%)</text>
               <rect x="20" y="100" width="44.45%" height="1"/>
               <text x="20" y="118">1 in</text>
               <text x="230" y="120">Inches (in)</text>
               <rect x="20" y="120" width="1in" height="1"/>
               <text x="20" y="138">2.54 cm = 1 in</text>
               <text x="230" y="140">Centimeters (cm)</text>
               <rect x="20" y="140" width="2.54cm" height="1"/>
               <text x="20" y="158">25.4 mm = 1 in</text>
               <text x="230" y="160">Millimeters (mm)</text>
               <rect x="20" y="160" width="25.4mm" height="1"/>
               <text x="20" y="178">72pt = 1 in</text>
               <text x="230" y="180">Points (pt)</text>
               <rect x="20" y="180" width="72pt" height="1"/>
               <text x="20" y="198">6pc = 1 in</text>
               <text x="230" y="200">Picas (pc)</text>
               <rect x="20" y="200" width="6pc" height="1"/>
          </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-units-BE-01</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