1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.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 <!-- =====================================================================-->
11 <!-- gradPatt-referenc-BE-08.svg -->
12 <!-- renamed for 1.1 suite to pservers-grad-03-b.svg -->
13 <!-- Author : Haroon Sheikh 08-Mar-2000 -->
14 <!-- & Philip Mansfield -->
15 <!-- Revised for 1.1 : Jun Fujisawa 19-Feb-2002 -->
16 <!--======================================================================-->
17 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" viewBox=
"0 0 480 360" width=
"100%" height=
"100%" version=
"1.1" baseProfile=
"basic">
18 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/">
19 <OperatorScript version=
"$Revision: 1.6 $" testname=
"pservers-grad-03-b.svg">
21 Test that the viewer can handle the xlink:href attribute on
25 There are two rectangles with a pattern fill made
26 up of
4 rectangles. The pattern definition of the lower one references the pattern definition
27 of the upper one, using the xlink:href attribute. Because
28 the particular way that the patterns and rectangles are
29 defined in this test case, the two fills will appear the
30 same - the rectangles are positioned on pattern-size
31 boundaries, so that the offsets into the pattern at the left
32 edges of the respective rectangles is identical.
35 The rendered picture should match the reference image, except
36 for possible variations in the labelling text (per CSS2 rules).
40 <title id=
"test-title">pservers-grad-
03-b
</title>
41 <desc id=
"test-desc">Test that the viewer can handle the xlink:href attribute on patterns.
</desc>
42 <!--======================================================================-->
43 <!--Content of Test Case follows... =====================-->
44 <!--======================================================================-->
45 <g id=
"test-body-content">
46 <!-- ====================================================================== -->
47 <!-- Pattern filled rectangles using a xlink:href to another pattern fill -->
48 <!-- ====================================================================== -->
49 <pattern id=
"Pat3a" x=
"0" y=
"0" width=
"20" height=
"20" patternUnits=
"userSpaceOnUse">
50 <rect x=
"0" y=
"0" width=
"10" height=
"10" fill=
"red" />
51 <rect x=
"10" y=
"0" width=
"10" height=
"10" fill=
"green" />
52 <rect x=
"0" y=
"10" width=
"10" height=
"10" fill=
"blue" />
53 <rect x=
"10" y=
"10" width=
"10" height=
"10" fill=
"yellow" />
55 <pattern id=
"Pat3b" xlink:
href=
"#Pat3a" width=
"20" height=
"20"/>
56 <rect x=
"20" y=
"20" width=
"440" height=
"80" fill=
"url(#Pat3a)" />
57 <text font-family=
"Arial" font-size=
"30" x=
"20" y=
"130">Pattern fill.
</text>
58 <rect x=
"20" y=
"150" width=
"440" height=
"80" fill=
"url(#Pat3b)" />
59 <text font-family=
"Arial" font-size=
"30" x=
"20" y=
"260">Referencing pattern fill below.
</text>
61 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.6 $
</text>
62 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>