blob: 537b1899932222b8a1ef353357cebd031b8aec3c [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<!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/. =-->
<!--======================================================================-->
<!-- ======================================================================== -->
<!-- filters-feTile-BE-14.svg -->
<!-- renamed for 1.1 suite to filters-tile-01-b.svg -->
<!-- Author : Rick Graham August 28, 2000 -->
<!-- revised for 1.1 : Luc Minnebo Feb/12/2002 -->
<!--======================================================================-->
<svg version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" zoomAndPan="magnify">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.9 $" testname="filters-tile-01-b.svg">
<Paragraph>
The test case constructs a filter that uses feTile to tile the entire specified filter region.
The tile consists of a red rectangle over a larger transparent rectangle.
The red rectangle is created with feFlood and feOffset. There is also a semi-transparent
blue rectangle that should exactly cover one of the tiled rectangles, creating a purple
tile with a black stroke (4 tiles down and 3 across).
</Paragraph>
<Paragraph>
The rendered picture should match the reference image, except for possible variations
in the labelling text (per CSS2 rules).
</Paragraph>
<Paragraph>
The test uses the 'rect' element, feTile, feFlood, feOffset, feMerge, fill style, stroke,
font-family (Arial) and font-size properties.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">filters-tile-01-b</title>
<desc id="test-desc">Test that the viewer can handle the feTile filter.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<text font-family="Arial" font-size="15" x="240" y="25" text-anchor="middle">feTile filter test: a tiled pattern</text>
<!-- ====================================================================== -->
<!-- Tiled created in defs then applied to rectangle -->
<!-- this seems pretty complex to me -->
<!-- ====================================================================== -->
<defs>
<filter id="feTileFilter" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse" x="115" y="40" width="250" height="250">
<feFlood x="115" y="40" width="54" height="19" flood-color="red"/>
<feOffset x="115" y="40" width="50" height="25" dx="6" dy="6" result="offset"/>
<feTile/>
</filter>
</defs>
<!-- The 'g' has no content, but the filter causes a rectangle
to be created which is filled with a tiled pattern. -->
<g filter="url(#feTileFilter)"/>
<!-- Show the outline of the rectangle which is filled with the tiled pattern. -->
<rect x="115" y="40" width="250" height="250" fill="none" stroke="blue" stroke-width="2"/>
<!-- draw a semi-transparent rectangle over one of the tiles -->
<rect x="215" y="115" width="50" height="25" fill="blue" fill-opacity="0.5" stroke="black"/>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.9 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>