1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
4 <!--======================================================================-->
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, Institut National de Recherche en =-->
7 <!--= Informatique et en Automatique, Keio University). All Rights =-->
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================-->
10 <!-- ===================================================================== -->
12 <!-- paint-stroke-BE-02.svg -->
13 <!-- renamed for 1.1 suite to "painting-stroke-04-t.svg -->
15 <!-- Test that viewer has the basic capability to handle the stroke -->
19 <!-- Author : Kevin McCluskey, 23-Mar-2000 -->
20 <!-- 1.1 revision by Rick Graham -->
23 <!-- 23-Mar-2000, KMM, Serial#3 created. Matches 20000202 SVG spec. -->
24 <!-- 28-Mar-2000, LH=" fix names" reposition/rescale; ser#4. -->
25 <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
27 <!-- ===================================================================== -->
28 <!--======================================================================-->
29 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
30 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
31 <!--======================================================================-->
32 <svg version=
"1.1" baseProfile=
"tiny" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360">
33 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/">
34 <OperatorScript version=
"$Revision: 1.10 $" testname=
"painting-stroke-04-t.svg">
36 Verify the
"stroke-dasharray" and
"stroke-dashoffset" properties. Two lines are drawn, one red
37 and one black. Both have a
"stroke-dasharray" of
"10,10" giving a dashed appearance
38 where the size of the gaps and the size of the dash is equal. The help show this,
39 the black line has a
"stroke-dashoffset" so that the dashes in the black line match
40 up with the gaps in the red line.
43 The test uses the
"path" element,
"stroke",
"stroke-width",
"stroke-dasharray" and
"stroke-dashoffset",
44 "font-family" (Arial) and
"font-size" properties.
48 <title id=
"test-title">painting-stroke-
04-t
</title>
49 <desc id=
"test-desc">Test that viewer has the basic capability to handle the
<stroke,stroke-opacity properites
></desc>
50 <!--======================================================================-->
51 <!--Content of Test Case follows... =====================-->
52 <!--======================================================================-->
53 <g id=
"test-body-content">
54 <!-- ====================================================================== -->
55 <!-- Test stroke:dasharray:10, 5 and stroke-opacity -->
56 <!-- ====================================================================== -->
57 <text font-family=
"Arial" font-size=
"36" x=
"10" y=
"60">Basic paint: stroke properties.
</text>
58 <path id=
"stroke-7b" fill=
"none" stroke=
"red" stroke-width=
"25" stroke-dashoffset=
"0" stroke-dasharray=
"10,10" d=
"M 50 120 L 430 120"/>
59 <path id=
"stroke-7c" fill=
"none" stroke=
"black" stroke-width=
"25" stroke-dashoffset=
"10" stroke-dasharray=
"10,10" d=
"M 50 140 L 430 140"/>
60 <text font-family=
"Arial" font-size=
"30" x=
"65" y=
"210">stroke-dasharray=
"10, 10"</text>
61 <text font-family=
"Arial" font-size=
"30" x=
"75" y=
"260">stroke-dashoffset=
"10"</text>
64 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.10 $
</text>
65 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>