Debian Codegraph @

test_non_regression/svg/pservers-pattern-06-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="[reviewer]" author="Microsoft" status="created" version="$Revision: 1.2 $" testname="$RCSfile: pservers-pattern-06-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 <!--[[
13 The 'pattern' element is neither rendered directly nor via the 'use' element.
14 ]]-->
15 </p>
16 </d:testDescription>
17 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
18 <p>
19 <!--[[
20 Define a 'pattern' element with a red 'rect' and reference it from a 'use' element. Also specify one 'pattern' elements with a red 'rect'
21 outside of a 'defs' tag. Verify there is no red on the page.
22 ]]-->
23 </p>
24 </d:operatorScript>
25 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 <!--[[
28 Test passes if there is no red visible on the page.
29 ]]-->
30 </p>
31 </d:passCriteria>
32 </d:SVGTestCase>
33 <title id="test-title">$RCSfile: pservers-pattern-06-f.svg,v $</title>
34 <defs>
35 <font-face
36 font-family="SVGFreeSansASCII"
37 unicode-range="U+0-7F">
38 <font-face-src>
39 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
40 </font-face-src>
41 </font-face>
42 </defs>
43 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
44 <defs>
45 <pattern id="testPattern" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" viewBox="0 0 10 10" >
46 <rect x="5" y="5" width="10" height="10" fill="red" />
47 </pattern>
48 </defs>
49 <use x="100" y="100" xlink:href="url(#testPattern)" />
50 <pattern patternUnits="userSpaceOnUse" x="10" y="10" width="20" height="20">
51 <rect x="5" y="5" width="10" height="10" fill="red" />
52 </pattern>
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>