Debian Codegraph @

test_non_regression/svg/pservers-pattern-01-b.svg

raw
1 <svg version="1.1" baseProfile="basic" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="SVGWG" author="Haroon Sheikh" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: pservers-pattern-01-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Patterns">
17 <p>
18 Test that the viewer has basic capability to handle patterns
19 on fills and stroke of objects and text.
20 </p>
21 </d:testDescription>
22 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
23 <p>
24 Run the test. No interaction required.
25 </p>
26 </d:operatorScript>
27 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
28 <p>
29 From top-down the appearance of objects is as follows.
30 </p>
31 <p>
32 The top rectangle should be filled with a pattern composed of a green
33 rectangle on top of yellow rectangle. A default stroke has been applied to the original
34 rectangle to see the boundary of the rectangle.
35 </p>
36 <p>
37 The next rectangle has no fill, but has a thick stroke on which the pattern is
38 applied. The pattern consists of 4 colored rectangles.
39 </p>
40 <p>
41 The next item is a text with a pattern on the fill. The pattern appears as
42 alternating rows of orange and green.
43 </p>
44 <p>
45 The last item is a text with a 2 user unit stroke on which a pattern is applied.
46 The pattern appears as alternating columns of maroon and blue.
47 </p>
48 </d:passCriteria>
49 </d:SVGTestCase>
50 <title id="test-title">$RCSfile: pservers-pattern-01-b.svg,v $</title>
51 <defs>
52 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
53 <font-face-src>
54 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
55 </font-face-src>
56 </font-face>
57 </defs>
58 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
59 <!-- ====================================================================== -->
60 <!-- Rectangle with a pattern fill ======== -->
61 <!-- ====================================================================== -->
62 <pattern patternUnits="userSpaceOnUse" id="pat1" x="10" y="10" width="20" height="20">
63 <rect x="5" y="5" width="10" height="10" fill="yellow"/>
64 <rect x="10" y="10" width="10" height="10" fill="green"/>
65 </pattern>
66 <rect x="25" y="10" width="430" height="60" stroke="black" fill="url(#pat1)"/>
67 <text font-family="Arial" font-size="12" x="25" y="85">Pattern created using yellow and green rectangles applied to fill of rectangle</text>
68 <!-- ====================================================================== -->
69 <!-- Rectangle with a pattern on the stroke ======== -->
70 <!-- ====================================================================== -->
71 <pattern patternUnits="userSpaceOnUse" id="pat2" x="0" y="0" width="20" height="20">
72 <rect x="0" y="0" width="10" height="10" fill="maroon"/>
73 <rect x="10" y="0" width="10" height="10" fill="green"/>
74 <rect x="0" y="10" width="10" height="10" fill="blue"/>
75 <rect x="10" y="10" width="10" height="10" fill="yellow"/>
76 </pattern>
77 <rect x="35" y="110" width="410" height="40" fill="none" stroke="url(#pat2)" stroke-width="20"/>
78 <text font-family="Arial" font-size="12" x="25" y="175">Pattern of 4 rectangles applied to a stroke of a rectangle.</text>
79 <!-- ====================================================================== -->
80 <!-- Pattern filled text ======== -->
81 <!-- ====================================================================== -->
82 <pattern patternUnits="userSpaceOnUse" id="pat3" x="0" y="0" width="10" height="20">
83 <rect x="0" y="0" width="10" height="10" fill="orange"/>
84 <rect x="0" y="10" width="10" height="10" fill="green"/>
85 </pattern>
86 <text font-family="Arial" font-size="50" fill="url(#pat3)" x="25" y="220">Pattern on fill</text>
87 <text font-family="Arial" font-size="12" x="25" y="235">Pattern consists of orange and green rows</text>
88 <!-- ====================================================================== -->
89 <!-- Pattern on stroke of text ======== -->
90 <!-- ====================================================================== -->
91 <pattern patternUnits="userSpaceOnUse" id="pat4" x="0" y="0" width="20" height="10">
92 <rect x="0" y="0" width="10" height="10" fill="maroon"/>
93 <rect x="10" y="0" width="10" height="10" fill="blue"/>
94 </pattern>
95 <text font-family="Arial" font-size="40" fill="none" stroke="url(#pat4)" stroke-width="2" x="25" y="275">Pattern on stroke</text>
96 <text font-family="Arial" font-size="12" x="25" y="290">Pattern consists of maroon and blue columns</text>
97 </g>
98 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
99 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
100 </g>
101 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
102 <!-- comment out this watermark once the test is approved -->
103 <!--<g id="draft-watermark">
104 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
105 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
106 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
107 </g>-->
108 </svg>