| <?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-referenc-BE-08.svg --> |
| <!-- renamed for 1.1 suite to pservers-grad-03-b.svg --> |
| <!-- Author : Haroon Sheikh 08-Mar-2000 --> |
| <!-- & Philip Mansfield --> |
| <!-- Revised for 1.1 : Jun Fujisawa 19-Feb-2002 --> |
| <!--======================================================================--> |
| <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"> |
| <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
| <OperatorScript version="$Revision: 1.6 $" testname="pservers-grad-03-b.svg"> |
| <Paragraph> |
| Test that the viewer can handle the xlink:href attribute on |
| patterns. |
| </Paragraph> |
| <Paragraph> |
| There are two rectangles with a pattern fill made |
| up of 4 rectangles. The pattern definition of the lower one references the pattern definition |
| of the upper one, using the xlink:href attribute. Because |
| the particular way that the patterns and rectangles are |
| defined in this test case, the two fills will appear the |
| same - the rectangles are positioned on pattern-size |
| boundaries, so that the offsets into the pattern at the left |
| edges of the respective rectangles is identical. |
| </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-03-b</title> |
| <desc id="test-desc">Test that the viewer can handle the xlink:href attribute on patterns.</desc> |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <g id="test-body-content"> |
| <!-- ====================================================================== --> |
| <!-- Pattern filled rectangles using a xlink:href to another pattern fill --> |
| <!-- ====================================================================== --> |
| <pattern id="Pat3a" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"> |
| <rect x="0" y="0" width="10" height="10" fill="red" /> |
| <rect x="10" y="0" width="10" height="10" fill="green" /> |
| <rect x="0" y="10" width="10" height="10" fill="blue" /> |
| <rect x="10" y="10" width="10" height="10" fill="yellow" /> |
| </pattern> |
| <pattern id="Pat3b" xlink:href="#Pat3a" width="20" height="20"/> |
| <rect x="20" y="20" width="440" height="80" fill="url(#Pat3a)" /> |
| <text font-family="Arial" font-size="30" x="20" y="130">Pattern fill.</text> |
| <rect x="20" y="150" width="440" height="80" fill="url(#Pat3b)" /> |
| <text font-family="Arial" font-size="30" x="20" y="260">Referencing pattern fill below.</text> |
| </g> |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.6 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |