Debian Codegraph @

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

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.4" reviewer="CM" author="ED" status="reviewed"
13 version="$Revision: 1.2 $" testname="$RCSfile: pservers-pattern-07-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Patterns">
15 <p>
16 Test that an invalid xlink:href on a 'pattern' element has no effect on the pattern.
17 The pattern dimensions and coordinate-system are defined completely on the pattern that has the invalid xlink:href,
18 to test that they're not overridden by the non-existant pattern that is referenced.
19 </p>
20 </d:testDescription>
21 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
22 <p>
23 Run the test. No interaction required.
24 </p>
25 </d:operatorScript>
26 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 The test is passed if there are four green circles visible on the page.
29 </p>
30 </d:passCriteria>
31 </d:SVGTestCase>
32 <title id="test-title">$RCSfile: pservers-pattern-07-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" x="0" y="0" width="100" height="100" viewBox="0 0 10 10">
45 <circle cx="5" cy="5" r="1.7" fill="red" />
46 </pattern>
47 <pattern id="pattern2" xlink:href="#invalidlink" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" viewBox="0 0 10 10">
48 <circle cx="5" cy="5" r="2" fill="lime" />
49 </pattern>
50 </defs>
51 <rect fill="url(#pattern1)" stroke="none" x="1" y="1" width="200" height="200" />
52 <rect fill="url(#pattern2)" stroke="none" x="1" y="1" width="200" height="200" />
53 </g>
54 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
55 <text id="revision" x="10" y="340" stroke="none"
56 fill="black">$Revision: 1.2 $</text>
57 </g>
58 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
59 <!-- comment out this watermark once the test is approved -->
60 <g id="draft-watermark">
61 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
62 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
63 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
64 </g>
65 </svg>