Debian Codegraph @

test_non_regression/svg/pservers-grad-16-b.svg

raw
1 <svg version="1.1" baseProfile="tiny" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="CL" author="CN" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: pservers-grad-16-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
17 <p>
18 Test gradient stop rules. Including:
19 No stops, like fill = none.
20 One stop, like fill = black.
21 If a stop less than all previous stops, it is set equal to the largest stop.
22 If two stops are equal the last stop controls the color at the overlap point.
23 </p>
24 </d:testDescription>
25 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 [[
28 Describe how to use the here. The instructions should specify any
29 steps requied to run the test or any manual operation that need
30 to be performed to run the test.
31 ]]
32 </p>
33 </d:operatorScript>
34 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
35 <p>
36 The top rectangle must have a pink outline and no fill. The middle rectangle must have a
37 solid black fill. The lower rectangle must have a yellow to pink to green
38 linear gradient on the left-hand half and a solid blue fill for the right hand half.
39 </p>
40 </d:passCriteria>
41 </d:SVGTestCase>
42 <title id="test-title">$RCSfile: pservers-grad-16-b.svg,v $</title>
43 <defs>
44 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
45 <font-face-src>
46 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
47 </font-face-src>
48 </font-face>
49 </defs>
50 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
51 <!-- No stops, like fill = none -->
52 <linearGradient id="defs1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
53 </linearGradient>
54 <!-- One stop, like fill = black -->
55 <linearGradient id="defs2" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
56 <stop stop-color="black" offset="1"/>
57 </linearGradient>
58 <!-- If a stop less than all previous stops, it is set equal to the largest stop-->
59 <!-- This also tests if two stops are equal the last stop controls the color at the overlap point-->
60 <linearGradient id="defs3" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
61 <stop stop-color="yellow" offset="0"/>
62 <stop stop-color="#f48" offset=".25"/>
63 <stop stop-color="green" offset=".5"/>
64 <stop stop-color="blue" offset=".1"/>
65 </linearGradient>
66
67 <rect x="20" y="10" width="440" height="80" fill="url(#defs1)" stroke="#f48"/>
68 <rect x="20" y="110" width="440" height="80" fill="url(#defs2)"/>
69 <rect x="20" y="210" width="440" height="80" fill="url(#defs3)"/>
70 </g>
71 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
72 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
73 </g>
74 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
75 <!-- comment out this watermark once the test is approved -->
76 <!--<g id="draft-watermark">
77 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
78 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
79 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
80 </g>-->
81 </svg>