Revision control

Copy as Markdown

<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%"
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--======================================================================-->
reviewer="AG" owner="AN" desc="Test points attribute syntax. Test that empty and invalid points attributes result in not rendering 'polygon' elements." status="accepted"
approved="yes"
version="$Revision: 1.5 $" testname="$RCSfile: shapes-polygon-02-t.svg,v $">
<p>
Testing different points attribute syntaxes, empty and invalid points
attributes (e.g. odd number of coordinates).
</p>
<p>
Only three identical polygon elements should be rendered down the
right hand side of the test.
</p>
<p>
The rendered picture should match the reference image, except for
possible variations in the labelling text (per CSS2 rules).
</p>
</d:OperatorScript>
</SVGTestCase>
<title xml:id="test-title">$RCSfile: shapes-polygon-02-t.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../images/SVGFreeSans.svg#ascii" />
</font-face-src>
</font-face>
</defs>
<g xml:id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<text font-size="12" x="240" y="14" text-anchor="middle">Test that empty and invalid points attributes don't result in rendering 'polygon' elements.</text>
<text font-size="12" x="25" y="160">Only three similar &lt;polygon /&gt; elements should be rendered.</text>
<text font-size="12" x="25" y="180">Three different syntaxes in the points attribute.</text>
<!-- Test polygon without points attribute. -->
<polygon xml:id="polygon-01" fill="red" stroke="black" />
<!-- Test polygon with empty points attribute. -->
<polygon xml:id="polygon-02" fill="red" stroke="black" points="" />
<!-- odd number of coordinates -->
<polygon xml:id="polygon-03" fill="red" stroke="black" points="179,45,218,63,228,105,202,139,159,140,131,107,139,65,179" />
<!-- two alternative points attribute syntaxes -->
<polygon xml:id="polygon-04" fill="red" stroke="black" transform="translate(40,0)" points="350,45 375,80 410,95 375,110 350,145 325,120 290,95 325,70,350,45" />
<polygon xml:id="polygon-05" fill="red" stroke="black" transform="translate(40,100)" points="350,45,375,80,410,95,375,110,350,145,325,120,290,95,325,70,350,45" />
<polygon xml:id="polygon-06" fill="red" stroke="black" transform="translate(40,200)" points="350 45 375 80 410 95 375 110 350 145 325 120 290 95 325 70 350 45" />
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text xml:id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
</g>
<rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000" />
<!-- comment out this watermark once the test is approved -->
<!--<g xml:id="draft-watermark" fill-opacity="0.5">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1" />
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>