| 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="ED" author="AG" status="accepted" |
| 13 |
version="$Revision: 1.4 $" testname="$RCSfile: pservers-grad-22-b.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/master/pservers.html#Gradients"> |
| 15 |
<p> |
| 16 |
Tests that transforms affect the rendering of a gradient. |
| 17 |
</p> |
| 18 |
</d:testDescription> |
| 19 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 20 |
<p> |
| 21 |
Run the test. No interaction required. |
| 22 |
</p> |
| 23 |
</d:operatorScript> |
| 24 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p> |
| 26 |
The test passes if each of the two gradient-filled rectangles |
| 27 |
towards the top of the test slide is identical to the one below it. |
| 28 |
</p> |
| 29 |
</d:passCriteria> |
| 30 |
</d:SVGTestCase> |
| 31 |
<title id="test-title">$RCSfile: pservers-grad-22-b.svg,v $</title> |
| 32 |
<defs> |
| 33 |
<font-face |
| 34 |
font-family="SVGFreeSansASCII" |
| 35 |
unicode-range="U+0-7F"> |
| 36 |
<font-face-src> |
| 37 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 38 |
</font-face-src> |
| 39 |
</font-face> |
| 40 |
</defs> |
| 41 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 42 |
<defs> |
| 43 |
<linearGradient id="g1" x1="0" y1="0" x2="400" y2="50" gradientUnits="userSpaceOnUse" > |
| 44 |
<stop offset="0" stop-color="blue"/> |
| 45 |
<stop offset="0.5" stop-color="yellow"/> |
| 46 |
<stop offset="1.0" stop-color="blue"/> |
| 47 |
</linearGradient> |
| 48 |
|
| 49 |
<linearGradient id="g2" x1="0" y1="0" x2="200" y2="12.5" gradientUnits="userSpaceOnUse"> |
| 50 |
<stop offset="0" stop-color="blue"/> |
| 51 |
<stop offset="0.5" stop-color="yellow"/> |
| 52 |
<stop offset="1.0" stop-color="blue"/> |
| 53 |
</linearGradient> |
| 54 |
|
| 55 |
<linearGradient id="g3" x1="0" y1="0" x2="400" y2="50" gradientUnits="userSpaceOnUse" gradientTransform="rotate(-37) scale(0.89 1)"> |
| 56 |
<stop offset="0" stop-color="blue"/> |
| 57 |
<stop offset="0.5" stop-color="yellow"/> |
| 58 |
<stop offset="1.0" stop-color="blue"/> |
| 59 |
</linearGradient> |
| 60 |
|
| 61 |
<linearGradient id="g4" x1="0" y1="0" x2="200" y2="12.5" gradientUnits="userSpaceOnUse" gradientTransform="rotate(-20)"> |
| 62 |
<stop offset="0" stop-color="blue"/> |
| 63 |
<stop offset="0.5" stop-color="yellow"/> |
| 64 |
<stop offset="1.0" stop-color="blue"/> |
| 65 |
</linearGradient> |
| 66 |
</defs> |
| 67 |
|
| 68 |
<g transform="translate(20,50)"> |
| 69 |
<g transform="scale(0.5,1)"> |
| 70 |
<rect width="400" height="50" fill="url(#g1)" /> |
| 71 |
</g> |
| 72 |
</g> |
| 73 |
|
| 74 |
<g transform="translate(20,120)"> |
| 75 |
<rect width="200" height="50" fill="url(#g2)" /> |
| 76 |
</g> |
| 77 |
|
| 78 |
<g transform="translate(250,80)"> |
| 79 |
<rect width="400" height="50" fill="url(#g3)" transform="scale(0.5,1)"/> |
| 80 |
</g> |
| 81 |
|
| 82 |
<g transform="translate(250,150)"> |
| 83 |
<rect width="200" height="50" fill="url(#g4)" /> |
| 84 |
</g> |
| 85 |
</g> |
| 86 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 87 |
<text id="revision" x="10" y="340" stroke="none" |
| 88 |
fill="black">$Revision: 1.4 $</text> |
| 89 |
</g> |
| 90 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 91 |
<!-- comment out this watermark once the test is approved |
| 92 |
<g id="draft-watermark"> |
| 93 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 94 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 95 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 96 |
</g>--> |
| 97 |
</svg> |