Debian Codegraph @

test_non_regression/svg/pservers-grad-03-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.8 $" testname="$RCSfile: pservers-grad-03-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
17 <p>
18 Test that the viewer can handle the xlink:href attribute on
19 patterns.
20 </p>
21 <p>
22 There are two rectangles with a pattern fill made
23 up of 4 rectangles. The pattern definition of the lower one references the pattern definition
24 of the upper one, using the xlink:href attribute. Because
25 the particular way that the patterns and rectangles are
26 defined in this test case, the two fills will appear the
27 same - the rectangles are positioned on pattern-size
28 boundaries, so that the offsets into the pattern at the left
29 edges of the respective rectangles is identical.
30 </p>
31 </d:testDescription>
32 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
33 <p>
34 Run the test. No interaction required.
35 </p>
36 </d:operatorScript>
37 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
38 <p>The test passes if the rendering matches the reference image, except
39 for any differences in text due to CSS2 rules. Note that the top rectangle must
40 look identical to the bottom rectangle.</p>
41 </d:passCriteria>
42 </d:SVGTestCase>
43 <title id="test-title">$RCSfile: pservers-grad-03-b.svg,v $</title>
44 <defs>
45 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
46 <font-face-src>
47 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
48 </font-face-src>
49 </font-face>
50 </defs>
51 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
52 <!-- ====================================================================== -->
53 <!-- Pattern filled rectangles using a xlink:href to another pattern fill -->
54 <!-- ====================================================================== -->
55 <pattern id="Pat3a" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
56 <rect x="0" y="0" width="10" height="10" fill="#93D"/>
57 <rect x="10" y="0" width="10" height="10" fill="green"/>
58 <rect x="0" y="10" width="10" height="10" fill="blue"/>
59 <rect x="10" y="10" width="10" height="10" fill="yellow"/>
60 </pattern>
61 <pattern id="Pat3b" xlink:href="#Pat3a" width="20" height="20"/>
62 <rect x="20" y="20" width="440" height="80" fill="url(#Pat3a)"/>
63 <text font-size="30" x="20" y="130">Pattern fill.</text>
64 <rect x="20" y="160" width="440" height="80" fill="url(#Pat3b)"/>
65 <text font-size="30" x="20" y="270">Referencing pattern fill below.</text>
66 </g>
67 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
68 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
69 </g>
70 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
71 <!-- comment out this watermark once the test is approved -->
72 <!--<g id="draft-watermark">
73 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
74 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
75 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
76 </g>-->
77 </svg>