Debian Codegraph @

test_non_regression/svg/pservers-grad-24-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-grad-24-f.svg,v $">
10 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/pservers.html#Gradients">
11 <p>
12 Test that the 'linearGradient' and 'radialGradient' elements are neither rendered directly nor via the 'use' element.
13 </p>
14 <p>
15 The test defines 'linearGradient' and 'radialGradient' elements with a red 'stop' and references them from a 'use' element. 'linearGradient'
16 and 'radialGradient' elements with a red 'stop' are also specified outside of a 'defs' tag as if they were regular graphical elements.
17 </p>
18 </d:testDescription>
19 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
20 <p>Run the test. No interaction required.</p>
21 </d:operatorScript>
22 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
23 <p>
24 Test passes if there is no red visible on the page.
25 </p>
26 </d:passCriteria>
27 </d:SVGTestCase>
28 <title id="test-title">$RCSfile: pservers-grad-24-f.svg,v $</title>
29 <defs>
30 <font-face
31 font-family="SVGFreeSansASCII"
32 unicode-range="U+0-7F">
33 <font-face-src>
34 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
35 </font-face-src>
36 </font-face>
37 </defs>
38 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
39 <defs>
40 <linearGradient id="testLinear">
41 <stop offset="100%" stop-color="red" />
42 </linearGradient>
43 <radialGradient id="testRadial">
44 <stop offset="100%" stop-color="red" />
45 </radialGradient>
46 </defs>
47 <text x="10" y="50">There should be no red.</text>
48 <use x="0" y="0" xlink:href="url(#testLinear)" />
49 <use x="0" y="150" xlink:href="url(#testRadial)" />
50 <linearGradient x1="0" x2="100" y1="150" y2="250">
51 <stop offset="100%" stop-color="red" />
52 </linearGradient>
53 <radialGradient cx="200" cy="300" r="50" fx="200" fy="300">
54 <stop offset="100%" stop-color="red" />
55 </radialGradient>
56 </g>
57 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
58 <text id="revision" x="10" y="340" stroke="none"
59 fill="black">$Revision: 1.3 $</text>
60 </g>
61 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
62 <!-- comment out this watermark once the test is approved -->
63 <g id="draft-watermark">
64 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
65 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
66 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
67 </g>
68 </svg>