| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd"> |
| |
| <!--======================================================================--> |
| <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, Institut National de Recherche en =--> |
| <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <!-- ===================================================================== --> |
| <!-- gradPatt-linearGr-BE-01.svg --> |
| <!-- renamed for 1.1 suite to pservers-grad-07-b.svg --> |
| <!-- Author : Haroon Sheikh 09-Feb-2000 --> |
| <!-- 1.1 revision by Rick Graham --> |
| <!--======================================================================--> |
| <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> |
| <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
| <OperatorScript version="$Revision: 1.8 $" testname="pservers-grad-07-b.svg"> |
| <Paragraph> |
| Test that the viewer has basic capability to handle linear gradients |
| on fills and stroke of objects and text. |
| </Paragraph> |
| <Paragraph> |
| This test uses the following elements : <linearGradient>, <stop> |
| and the following properties : stop-color, fill:url(# ), stroke(url# ) |
| </Paragraph> |
| <Paragraph> |
| Both elements in this test use the same simple gradient. It is a linear gradient from |
| blue (left) to red (right). From top-down the appearance of objects is as follows. |
| </Paragraph> |
| <Paragraph> |
| The top rectangle should be filled with the gradient. |
| </Paragraph> |
| <Paragraph> |
| The next rectangle has no fill, but has a thick stroke on which the gradient is |
| applied. |
| </Paragraph> |
| <Paragraph> |
| The rendered picture should match the reference image, except for possible |
| variations in the labelling text (per CSS2 rules). |
| </Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| <title id="test-title">pservers-grad-07-b.svg</title> |
| <desc id="test-desc">Test that the viewer has basic capability to handle linear gradients on fills and stroke of objects |
| . This means it needs to understand the following elements : <linearGradient>, <stop> and the following |
| properties : stop-color, fill:url(# ), stroke(url# )</desc> |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <g id="test-body-content" transform="scale(1, 1.5)"> |
| <!-- ====================================================================== --> |
| <!-- Very simple blue to red linear gradient from left to right ========== --> |
| <!-- ====================================================================== --> |
| <linearGradient id="Gradient" gradientUnits="userSpaceOnUse" x1="10" y1="10" x2="440" y2="10"> |
| <stop stop-color="blue" offset="0"/> |
| <stop stop-color="red" offset="1"/> |
| </linearGradient> |
| <!-- ====================================================================== --> |
| <!-- Linear gradient on the fill of a rectangle ======== --> |
| <!-- ====================================================================== --> |
| <rect x="10" y="10" width="430" height="60" fill="url(#Gradient)" /> |
| <text font-family="Arial" font-size="24" x="10" y="90">Linear gradient filled rectangle</text> |
| <!-- ====================================================================== --> |
| <!-- Linear gradient on the stroke of a rectangle ======== --> |
| <!-- ====================================================================== --> |
| <rect x="25" y="110" width="400" height="30" fill="none" stroke="url(#Gradient)" stroke-width="20" /> |
| <text font-family="Arial" font-size="24" x="10" y="170">Linear gradient on stroke of rectangle</text> |
| </g> |
| |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |
| |