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

All > SVG > Text > text-selection-BE-13


File: text-selection-BE-13
Author: Jon Ferraiolo
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style |
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | y |
titleid |
tspanx | y |

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">text-selection-BE-13</title>
     <desc id="test-desc">Test single line and multiline text selection.</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:16;" x="10" y="20">Test single line and multiline text selection.</text>
          <g style="font-family:Helvetica;font-size:16;">
               <text x="25" y="75">Here is a stand-alone 'text' element.</text>
               <text x="25" y="100">Here is a second 'text' element just below.</text>
               <text x="25" y="125">Because these are four separate 'text' elements,</text>
               <text x="25" y="150">text selection should not go across lines here.</text>
               <text>
                    <tspan x="25" y="250">However, these lines of text are achieved by using</tspan>
                    <tspan x="25" y="275">one 'tspan' per line, all contained within the same</tspan>
                    <tspan x="25" y="300">'text' element, so you should be able to select all</tspan>
                    <tspan x="25" y="325">four lines at the same time.</tspan>
               </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">text-selection-BE-13</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