blob: fd0d914a15f7b00b2ed7c4810bc2019fb911ef69 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- paths-data-10-t.svg -->
<!-- -->
<!-- Test that the view distinguishes between a path that is closed with -->
<!-- a Z (or z) command from a path whose start point and end point happen -->
<!-- to coincide. The viewer should recongize the difference and stroke -->
<!-- them differently based upon the stroke-linecap and stroke-linejoin -->
<!-- attributes. --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewed="YES" reviewer="CN" owner="SH" desc="tests paths with closepath vs. same start and end point" status="accepted" version="$Revision: 1.13 $" testname="$RCSfile: paths-data-10-t.svg,v $">
<OperatorScript>
<Paragraph>
Verify that the viewer renders the line caps and line joins for
open and closed paths properly.
Verify that the open triangular paths are stroked differently at
ends of the path than they are at their intermediate corners.
In contrast, the corners of a closed path should all appear the
same.
</Paragraph>
<Paragraph>
The rendered picture should match the reference image, except for possible
variations in the labelling text (per CSS2 rules).
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">paths-data-10-t</title>
<desc id="test-desc">Test that viewer correctly handles the stroking of open and closed &lt;path&gt; elements</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<!-- ====================================================================== -->
<!-- -->
<!-- ====================================================================== -->
<g transform="translate(10,10)">
<text font-family="Arial" font-size="18" x="10" y="20">open</text>
<text font-family="Arial" font-size="18" x="10" y="38">join=round</text>
<text font-family="Arial" font-size="18" x="10" y="56">cap=butt</text>
<text font-family="Arial" font-size="18" x="10" y="74">M, L</text>
<g transform="translate(115,0)">
<path id="triangle-01" fill="green" stroke="red" stroke-width="15" stroke-linecap="butt" stroke-linejoin="round" d="M 100 0 L 100 80 0 40 100 0"/>
</g>
</g>
<g transform="translate(10,115)">
<text font-family="Arial" font-size="18" x="10" y="20">open</text>
<text font-family="Arial" font-size="18" x="10" y="38">join=bevel</text>
<text font-family="Arial" font-size="18" x="10" y="56">cap=round</text>
<text font-family="Arial" font-size="18" x="10" y="74">m, l</text>
<g transform="translate(115,0)">
<path id="triangle-02" fill="green" stroke="red" stroke-width="15" stroke-linecap="round" stroke-linejoin="bevel" d="m 100 0 l 0 80 -100 -40 100 -40"/>
</g>
</g>
<g transform="translate(10,220)">
<text font-family="Arial" font-size="18" x="10" y="20">open</text>
<text font-family="Arial" font-size="18" x="10" y="38">join=miter</text>
<text font-family="Arial" font-size="18" x="10" y="56">cap=square</text>
<text font-family="Arial" font-size="18" x="10" y="74">M, L</text>
<g transform="translate(115,0)">
<path id="triangle-03" fill="green" stroke="red" stroke-width="15" stroke-linecap="square" stroke-linejoin="miter" d="M 100 0 L 100 80 0 40 100 0"/>
</g>
</g>
<g transform="translate(250,10)">
<text font-family="Arial" font-size="18" x="125" y="20">closed</text>
<text font-family="Arial" font-size="18" x="125" y="38">join=round</text>
<text font-family="Arial" font-size="18" x="125" y="56">cap=butt</text>
<text font-family="Arial" font-size="18" x="125" y="74">M, L, Z</text>
<g transform="translate(0,0)">
<path id="triangle-04" fill="green" stroke="red" stroke-width="15" stroke-linecap="butt" stroke-linejoin="round" d="M 0 0 L 100 40 0 80 Z"/>
</g>
</g>
<g transform="translate(250,115)">
<text font-family="Arial" font-size="18" x="125" y="20">closed</text>
<text font-family="Arial" font-size="18" x="125" y="38">join=bevel</text>
<text font-family="Arial" font-size="18" x="125" y="56">cap=round</text>
<text font-family="Arial" font-size="18" x="125" y="74">m, l, z</text>
<g transform="translate(0,0)">
<path id="triangle-05" fill="green" stroke="red" stroke-width="15" stroke-linecap="round" stroke-linejoin="bevel" d="m 0 0 l 100 40 -100 40 z"/>
</g>
</g>
<g transform="translate(250,220)">
<text font-family="Arial" font-size="18" x="125" y="20">closed</text>
<text font-family="Arial" font-size="18" x="125" y="38">join=miter</text>
<text font-family="Arial" font-size="18" x="125" y="56">cap=square</text>
<text font-family="Arial" font-size="18" x="125" y="74">M, L, Z</text>
<g transform="translate(0,0)">
<path id="triangle-06" fill="green" stroke="red" stroke-width="15" stroke-linecap="square" stroke-linejoin="miter" d="M 0 0 L 100 40 0 80 Z"/>
</g>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.13 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>