blob: 3dd0578e3ec76a19ae250572a6f82552da7fe903 [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/. =-->
<!--======================================================================-->
<svg 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" version="1.1" baseProfile="basic">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="BB" owner="CL" desc="Verifies null filters and filter regions" status="accepted" version="$Revision: 1.13 $" testname="$RCSfile: filters-felem-01-b.svg,v $">
<OperatorScript>
<Paragraph>
Test which verifies null filters and filter regions.
</Paragraph>
<Paragraph>
Four subtests each consist of a small red circle overdrawn with a larger black circle. Filters are applied to three of the black circles, hiding them and showing the red circle. The correct rendering is a black circle at top left and red circles in the other three cases.</Paragraph>
<Paragraph>The topleft subtest has no filter applied to the black circle, so the black circle is visible and the red one is not. The top right subtest applies a filter to the black circle, but there is no corresponding filter element. Thus, a null filter is applied and the black circle is not shown, allowing the red circle to be seen.
</Paragraph>
<Paragraph>The bottom left subtest applies an empty filter element with the default filterRegion, and the bottom right subtest applies an empty filter with a non-default filterRegion. In both cases where empty filters are applied, the result of the filter is a transparent black offscreen, thus showing the red circle underneath.</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">filters-felem-01-b</title>
<desc id="test-desc">Test which verifies null filters and filter regions.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<defs>
<filter id="null"/>
<filter id="nullreg" filterUnits="objectBoundingBox" x="40%" y="40%" width="20%" height="20%"/>
</defs>
<g>
<circle r="30" fill="red" cx="130" cy="60"/>
<circle r="40" fill="black" cx="130" cy="60"/>
<text font-size="20" x="130" y="130" text-anchor="middle">No filter</text>
</g>
<g>
<circle r="30" fill="red" cx="130" cy="210"/>
<circle r="40" fill="black" cx="130" cy="210" filter="url(#null)"/>
<text font-size="20" x="130" y="280" text-anchor="middle">Null filter</text>
</g>
<g>
<circle r="30" fill="red" cx="330" cy="60"/>
<circle r="40" fill="black" cx="330" cy="60" filter="url(#notthere)"/>
<text font-size="20" x="330" y="130" text-anchor="middle">Non-existant filter</text>
</g>
<g>
<circle r="30" fill="red" cx="330" cy="210"/>
<circle r="40" fill="black" cx="330" cy="210" filter="url(#nullreg)"/>
<text font-size="20" x="330" y="280" text-anchor="middle">Null with small region filter</text>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.13 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>