blob: 148a80745b8fd98a2ea3fcb68e3c530c4c6c8c1d [file] [log] [blame]
<?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-pattern-BE-07.svg -->
<!-- renamed for 1.1 suite to pservers-pattern-01-b.svg -->
<!-- -->
<!-- Test that the viewer has basic capability to handle patterns -->
<!-- on fills & stroke of shapes and text. -->
<!-- -->
<!-- Author : Haroon Sheikh 09-Feb-2000 -->
<!-- Revised for 1.1 : Jun Fujisawa 19-Feb-2002 -->
<!-- -->
<!-- History: -->
<!-- 06-Mar-2000, HSS: Serial#1 created. -->
<!-- 06-Mar-2000, DJ: Changed first pattern. -->
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
<!-- 16-Aug-2000, LH="rename" ser#3. -->
<!-- 08-Nov-2000, VH: added patternUnits on all pattern elements. -->
<!-- -->
<!-- =====================================================================-->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<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.6 $" testname="pservers-pattern-01-b.svg">
<Paragraph>
Test that the viewer has basic capability to handle patterns
on fills and stroke of objects and text.
</Paragraph>
<Paragraph>
From top-down the appearance of objects is as follows.
</Paragraph>
<Paragraph>
The top rectangle should be filled with a pattern composed of a green
rectangle on top of red rectangle. A default stroke has been applied to the original
rectangle to see the boundary of the rectangle.
</Paragraph>
<Paragraph>
The next rectangle has no fill, but has a thick stroke on which the pattern is
applied. The pattern consists of 4 colored rectangles.
</Paragraph>
<Paragraph>
The next item is a text with a pattern on the fill. The pattern appears as
alternating rows of red and green.
</Paragraph>
<Paragraph>
The last item is a text with a 2 user unit stroke on which a pattern is applied.
The pattern appears as alternating columns of red and blue.
</Paragraph>
<Paragraph>
The rendered image should match the reference image.
Variations in the labelling text (per CSS2 rules) are possible.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">pservers-pattern-01-b</title>
<desc id="test-desc">Test that the viewer has basic capability to handle patterns on fills and stroke of objects and text.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<!-- ====================================================================== -->
<!-- Rectangle with a pattern fill ======== -->
<!-- ====================================================================== -->
<pattern patternUnits="userSpaceOnUse" id="pat1" x="10" y="10" width="20" height="20">
<rect x="5" y="5" width="10" height="10" fill="red" />
<rect x="10" y="10" width="10" height="10" fill="green" />
</pattern>
<rect x="25" y="10" width="430" height="60" stroke="black" fill="url(#pat1)" />
<text font-family="Arial" font-size="12" x="25" y="85">Pattern created using red and green rectangles applied to fill of rectangle</text>
<!-- ====================================================================== -->
<!-- Rectangle with a pattern on the stroke ======== -->
<!-- ====================================================================== -->
<pattern patternUnits="userSpaceOnUse" id="pat2" x="0" y="0" width="20" height="20">
<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>
<rect x="35" y="110" width="410" height="40" fill="none" stroke="url(#pat2)" stroke-width="20" />
<text font-family="Arial" font-size="12" x="25" y="175">Pattern of 4 rectangles applied to a stroke of a rectangle.</text>
<!-- ====================================================================== -->
<!-- Pattern filled text ======== -->
<!-- ====================================================================== -->
<pattern patternUnits="userSpaceOnUse" id="pat3" x="0" y="0" width="10" height="20">
<rect x="0" y="0" width="10" height="10" fill="red" />
<rect x="0" y="10" width="10" height="10" fill="green" />
</pattern>
<text font-family="Arial" font-size="50" fill="url(#pat3)" x="25" y="220">Pattern on fill</text>
<text font-family="Arial" font-size="12" x="25" y="235">Pattern consists of red and green rows</text>
<!-- ====================================================================== -->
<!-- Pattern on stroke of text ======== -->
<!-- ====================================================================== -->
<pattern patternUnits="userSpaceOnUse" id="pat4" x="0" y="0" width="20" height="10">
<rect x="0" y="0" width="10" height="10" fill="red" />
<rect x="10" y="0" width="10" height="10" fill="blue" />
</pattern>
<text font-family="Arial" font-size="40" fill="none" stroke="url(#pat4)" stroke-width="2" x="25" y="275">Pattern on stroke</text>
<text font-family="Arial" font-size="12" x="25" y="290">Pattern consists of red and blue columns</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>