eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd"> |
| 3 | |
| 4 | <!--======================================================================--> |
| 5 | <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| 6 | <!--= Institute of Technology, Institut National de Recherche en =--> |
| 7 | <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| 8 | <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| 9 | <!--======================================================================--> |
| 10 | <!-- =====================================================================--> |
| 11 | <!-- --> |
| 12 | <!-- gradPatt-referenc-BE-08.svg --> |
| 13 | <!-- renamed for 1.1 suite to pservers-grad-01-b.svg --> |
| 14 | <!-- Author : Haroon Sheikh 08-Mar-2000 --> |
| 15 | <!-- & Philip Mansfield --> |
| 16 | <!-- Revised for 1.1 : Jun Fujisawa 19-Feb-2002 --> |
| 17 | <!--======================================================================--> |
| 18 | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" viewBox="0 0 480 360" width="100%" height="100%" version="1.1" baseProfile="basic"> |
| 19 | <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
eseidel | a220b26 | 2006-12-27 19:52:05 +0000 | [diff] [blame] | 20 | <OperatorScript version="$Revision: 1.5 $" testname="pservers-grad-01-b.svg"> |
eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 21 | <Paragraph> |
| 22 | Test that the viewer can handle the xlink:href attribute on |
| 23 | linear gradients. |
| 24 | </Paragraph> |
| 25 | <Paragraph> |
| 26 | There are two rectangles. The top one has a simple |
| 27 | blue (left) to red (right) linear gradient. The lower one |
| 28 | has a different gradient definition, but |
| 29 | should look the same as the one above, because the gradient makes a |
| 30 | reference to the first gradient, without modifying any attribute. |
| 31 | </Paragraph> |
| 32 | <Paragraph> |
| 33 | The rendered picture should match the reference image, except |
| 34 | for possible variations in the labelling text (per CSS2 rules). |
| 35 | </Paragraph> |
| 36 | </OperatorScript> |
| 37 | </SVGTestCase> |
| 38 | <title id="test-title">pservers-grad-01-b</title> |
| 39 | <desc id="test-desc">Test that the viewer can handle the xlink:href attribute on linear, radial gradients and patterns.</desc> |
| 40 | <!--======================================================================--> |
| 41 | <!--Content of Test Case follows... =====================--> |
| 42 | <!--======================================================================--> |
| 43 | <g id="test-body-content"> |
| 44 | <!-- ====================================================================== --> |
| 45 | <!-- Linear Gradient using a xlink:href to another linear gradient --> |
| 46 | <!-- ====================================================================== --> |
| 47 | <linearGradient id="Grad1a" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0"> |
| 48 | <stop stop-color="blue" offset="0"/> |
| 49 | <stop stop-color="red" offset="1"/> |
| 50 | </linearGradient> |
| 51 | <linearGradient id="Grad1b" xlink:href="#Grad1a"/> |
| 52 | <rect x="20" y="20" width="440" height="80" fill="url(#Grad1a)" /> |
| 53 | <text font-family="Arial" font-size="30" x="20" y="130">Linear gradient.</text> |
| 54 | <rect x="20" y="150" width="440" height="80" fill="url(#Grad1b)" /> |
| 55 | <text font-family="Arial" font-size="30" x="20" y="260">Referencing gradient below.</text> |
| 56 | </g> |
eseidel | a220b26 | 2006-12-27 19:52:05 +0000 | [diff] [blame] | 57 | <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text> |
eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 58 | <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 59 | </svg> |