| 1 |
<svg version="1.1" baseProfile="basic" 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="BB" status="accepted" |
| 15 |
version="$Revision: 1.5 $" testname="$RCSfile: pservers-grad-13-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 |
The purpose of this file is to test several values for focal points of radial gradients. |
| 19 |
</p> |
| 20 |
</d:testDescription> |
| 21 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 22 |
<p>Run the test. No interaction required.</p> |
| 23 |
</d:operatorScript> |
| 24 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p>The test passes if the rendered image matches the reference image, except |
| 26 |
for any differences in font choice due to CSS2.</p> |
| 27 |
</d:passCriteria> |
| 28 |
</d:SVGTestCase> |
| 29 |
<title id="test-title">$RCSfile: pservers-grad-13-b.svg,v $</title> |
| 30 |
<defs> |
| 31 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 32 |
<font-face-src> |
| 33 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 34 |
</font-face-src> |
| 35 |
</font-face> |
| 36 |
</defs> |
| 37 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 38 |
<text x="240" y="30" font-size="20" text-anchor="middle">Radial gradient focal point</text> |
| 39 |
<defs> |
| 40 |
<g id="alpha"> |
| 41 |
<rect x="00" y="0" width="100" height="60" fill="yellow"/> |
| 42 |
<rect x="00" y="0" width="10" height="60" fill="gold"/> |
| 43 |
<rect x="15" y="0" width="10" height="60" fill="orange"/> |
| 44 |
<rect x="30" y="0" width="10" height="60" fill="sienna"/> |
| 45 |
<rect x="45" y="0" width="10" height="60" fill="gold"/> |
| 46 |
<rect x="60" y="0" width="10" height="60" fill="sienna"/> |
| 47 |
<rect x="75" y="0" width="10" height="60" fill="orange"/> |
| 48 |
<rect x="90" y="0" width="10" height="60" fill="gold"/> |
| 49 |
<rect x="00" y="0" width="100" height="60"/> |
| 50 |
<!-- inherits a radial gradient --> |
| 51 |
</g> |
| 52 |
</defs> |
| 53 |
<defs> |
| 54 |
<radialGradient id="grad1a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="00%"> |
| 55 |
<stop offset="0" stop-opacity="0"/> |
| 56 |
<stop offset=".5" stop-color="darkblue"/> |
| 57 |
<stop offset="1" stop-opacity="0"/> |
| 58 |
</radialGradient> |
| 59 |
<radialGradient id="grad2a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="00%"> |
| 60 |
<stop offset="0" stop-opacity="0"/> |
| 61 |
<stop offset=".5" stop-color="darkblue"/> |
| 62 |
<stop offset="1" stop-opacity="0"/> |
| 63 |
</radialGradient> |
| 64 |
<radialGradient id="grad4a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="00%"> |
| 65 |
<stop offset="0" stop-opacity="0"/> |
| 66 |
<stop offset=".5" stop-color="darkblue"/> |
| 67 |
<stop offset="1" stop-opacity="0"/> |
| 68 |
</radialGradient> |
| 69 |
<radialGradient id="grad6a" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="00%"> |
| 70 |
<stop offset="0" stop-opacity="0"/> |
| 71 |
<stop offset=".5" stop-color="darkblue"/> |
| 72 |
<stop offset="1" stop-opacity="0"/> |
| 73 |
</radialGradient> |
| 74 |
|
| 75 |
<radialGradient id="grad1b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="25%"> |
| 76 |
<stop offset="0" stop-opacity="0"/> |
| 77 |
<stop offset=".5" stop-color="darkblue"/> |
| 78 |
<stop offset="1" stop-opacity="0"/> |
| 79 |
</radialGradient> |
| 80 |
<radialGradient id="grad2b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="25%"> |
| 81 |
<stop offset="0" stop-opacity="0"/> |
| 82 |
<stop offset=".5" stop-color="darkblue"/> |
| 83 |
<stop offset="1" stop-opacity="0"/> |
| 84 |
</radialGradient> |
| 85 |
<radialGradient id="grad4b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="25%"> |
| 86 |
<stop offset="0" stop-opacity="0"/> |
| 87 |
<stop offset=".5" stop-color="darkblue"/> |
| 88 |
<stop offset="1" stop-opacity="0"/> |
| 89 |
</radialGradient> |
| 90 |
<radialGradient id="grad6b" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="25%"> |
| 91 |
<stop offset="0" stop-opacity="0"/> |
| 92 |
<stop offset=".5" stop-color="darkblue"/> |
| 93 |
<stop offset="1" stop-opacity="0"/> |
| 94 |
</radialGradient> |
| 95 |
|
| 96 |
<radialGradient id="grad1c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="50%"> |
| 97 |
<stop offset="0" stop-opacity="0"/> |
| 98 |
<stop offset=".5" stop-color="darkblue"/> |
| 99 |
<stop offset="1" stop-opacity="0"/> |
| 100 |
</radialGradient> |
| 101 |
<radialGradient id="grad2c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="50%"> |
| 102 |
<stop offset="0" stop-opacity="0"/> |
| 103 |
<stop offset=".5" stop-color="darkblue"/> |
| 104 |
<stop offset="1" stop-opacity="0"/> |
| 105 |
</radialGradient> |
| 106 |
<radialGradient id="grad4c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="50%"> |
| 107 |
<stop offset="0" stop-opacity="0"/> |
| 108 |
<stop offset=".5" stop-color="darkblue"/> |
| 109 |
<stop offset="1" stop-opacity="0"/> |
| 110 |
</radialGradient> |
| 111 |
<radialGradient id="grad6c" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="50%"> |
| 112 |
<stop offset="0" stop-opacity="0"/> |
| 113 |
<stop offset=".5" stop-color="darkblue"/> |
| 114 |
<stop offset="1" stop-opacity="0"/> |
| 115 |
</radialGradient> |
| 116 |
|
| 117 |
<radialGradient id="grad1d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="00.00%" fy="75%"> |
| 118 |
<stop offset="0" stop-opacity="0"/> |
| 119 |
<stop offset=".5" stop-color="darkblue"/> |
| 120 |
<stop offset="1" stop-opacity="0"/> |
| 121 |
</radialGradient> |
| 122 |
<radialGradient id="grad2d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="16.66%" fy="75%"> |
| 123 |
<stop offset="0" stop-opacity="0"/> |
| 124 |
<stop offset=".5" stop-color="darkblue"/> |
| 125 |
<stop offset="1" stop-opacity="0"/> |
| 126 |
</radialGradient> |
| 127 |
<radialGradient id="grad4d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="50.00%" fy="75%"> |
| 128 |
<stop offset="0" stop-opacity="0"/> |
| 129 |
<stop offset=".5" stop-color="darkblue"/> |
| 130 |
<stop offset="1" stop-opacity="0"/> |
| 131 |
</radialGradient> |
| 132 |
<radialGradient id="grad6d" gradientUnits="objectBoundingBox" cx="10%" cy="10%" r="75%" fx="83.33%" fy="75%"> |
| 133 |
<stop offset="0" stop-opacity="0"/> |
| 134 |
<stop offset=".5" stop-color="darkblue"/> |
| 135 |
<stop offset="1" stop-opacity="0"/> |
| 136 |
</radialGradient> |
| 137 |
</defs> |
| 138 |
|
| 139 |
<g id="group1" stroke="black" stroke-width="0.5"> |
| 140 |
<use xlink:href="#alpha" x="017.5" y="045" fill="url(#grad1a)"/> |
| 141 |
<use xlink:href="#alpha" x="130" y="045" fill="url(#grad2a)"/> |
| 142 |
<use xlink:href="#alpha" x="242.5" y="045" fill="url(#grad4a)"/> |
| 143 |
<use xlink:href="#alpha" x="355" y="045" fill="url(#grad6a)"/> |
| 144 |
|
| 145 |
<use xlink:href="#alpha" x="017.5" y="110" fill="url(#grad1b)"/> |
| 146 |
<use xlink:href="#alpha" x="130" y="110" fill="url(#grad2b)"/> |
| 147 |
<use xlink:href="#alpha" x="242.5" y="110" fill="url(#grad4b)"/> |
| 148 |
<use xlink:href="#alpha" x="355" y="110" fill="url(#grad6b)"/> |
| 149 |
|
| 150 |
<use xlink:href="#alpha" x="017.5" y="175" fill="url(#grad1c)"/> |
| 151 |
<use xlink:href="#alpha" x="130" y="175" fill="url(#grad2c)"/> |
| 152 |
<use xlink:href="#alpha" x="242.5" y="175" fill="url(#grad4c)"/> |
| 153 |
<use xlink:href="#alpha" x="355" y="175" fill="url(#grad6c)"/> |
| 154 |
|
| 155 |
<use xlink:href="#alpha" x="017.5" y="240" fill="url(#grad1d)"/> |
| 156 |
<use xlink:href="#alpha" x="130" y="240" fill="url(#grad2d)"/> |
| 157 |
<use xlink:href="#alpha" x="242.5" y="240" fill="url(#grad4d)"/> |
| 158 |
<use xlink:href="#alpha" x="355" y="240" fill="url(#grad6d)"/> |
| 159 |
</g> |
| 160 |
</g> |
| 161 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 162 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text> |
| 163 |
</g> |
| 164 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 165 |
<!-- comment out this watermark once the test is approved --> |
| 166 |
<!--<g id="draft-watermark"> |
| 167 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 168 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 169 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 170 |
</g>--> |
| 171 |
</svg> |