Debian Codegraph @

test_non_regression/svg/pservers-pattern-05-f.svg

raw
1 <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <!--======================================================================-->
3 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
4 <!--= Institute of Technology, European Research Consortium for =-->
5 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
6 <!--= All Rights Reserved. =-->
7 <!--= See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="CM" author="Microsoft" status="reviewed" version="$Revision: 1.3 $" testname="$RCSfile: pservers-pattern-05-f.svg,v $">
10 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG/pservers.html#Patterns">
11 <p>
12 Test that a 'pattern' element can inherit attributes through multiple levels of
13 'xlink:href' referencing.
14 </p>
15 <p>
16 The test defines a pattern 'pattern1' with some attributes that scale the contents. The attributes on
17 'pattern1' are inherited into 'pattern2' and then inherited from 'pattern2'
18 into 'pattern3'. 'pattern3' has a green circle as its graphical content.
19 A 'rect' uses 'pattern3' as its fill, if the attributes are correctly inherited into
20 'pattern3', then the green circle will occlude a red circle in the same position.
21 </p>
22 </d:testDescription>
23 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
24 <p>Run the test. No interaction required.</p>
25 </d:operatorScript>
26 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 The test passed if there is no red visible on the page.
29 </p>
30 </d:passCriteria>
31 </d:SVGTestCase>
32 <title id="test-title">$RCSfile: pservers-pattern-05-f.svg,v $</title>
33 <defs>
34 <font-face
35 font-family="SVGFreeSansASCII"
36 unicode-range="U+0-7F">
37 <font-face-src>
38 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
39 </font-face-src>
40 </font-face>
41 </defs>
42 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
43 <defs>
44 <pattern id="Pattern1" patternUnits="userSpaceOnUse" width="100" height="100" viewBox="0 0 10 10" />
45 <pattern id="Pattern2" xlink:href="#Pattern1" />
46 <pattern id="Pattern3" xlink:href="#Pattern2">
47 <circle cx="5" cy="5" r="2" fill="green"/>
48 </pattern>
49 </defs>
50 <circle cx="50" cy="50" r="20" fill="red" />
51 <rect fill="url(#Pattern3)" width="100" height="100" />
52 </g>
53 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
54 <text id="revision" x="10" y="340" stroke="none"
55 fill="black">$Revision: 1.3 $</text>
56 </g>
57 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
58 <!-- comment out this watermark once the test is approved -->
59 <g id="draft-watermark">
60 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
61 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
62 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
63 </g>
64 </svg>