| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="UTF-8"?> | |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics
/SVG/1.1/DTD/svg11-basic.dtd"> | |
| 3 <!--======================================================================--> | |
| 4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> | |
| 5 <!--= Institute of Technology, Institut National de Recherche en =--> | |
| 6 <!--= Informatique et en Automatique, Keio University). All Rights =--> | |
| 7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> | |
| 8 <!--======================================================================--> | |
| 9 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" version="1.1"
baseProfile="basic"> | |
| 10 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/
" reviewer="BB" owner="CL" desc="Verifies null filters and filter regions" statu
s="accepted" version="$Revision: 1.13 $" testname="$RCSfile: filters-felem-01-b.
svg,v $"> | |
| 11 <OperatorScript> | |
| 12 <Paragraph> | |
| 13 Test which verifies null filters and filter regi
ons. | |
| 14 </Paragraph> | |
| 15 <Paragraph> | |
| 16 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> | |
| 17 | |
| 18 <Paragraph>The topleft subtest has no filter applied to the black circle, so th
e 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 c
ircle to be seen. | |
| 19 </Paragraph> | |
| 20 <Paragraph>The bottom left subtest applies an empty filter element with th
e default filterRegion, and the bottom right subtest applies an empty filter wit
h 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 cir
cle underneath.</Paragraph> | |
| 21 </OperatorScript> | |
| 22 </SVGTestCase> | |
| 23 <title id="test-title">filters-felem-01-b</title> | |
| 24 <desc id="test-desc">Test which verifies null filters and filter regions.</des
c> | |
| 25 <!--======================================================================--> | |
| 26 <!--Content of Test Case follows... =====================--> | |
| 27 <!--======================================================================--> | |
| 28 <g id="test-body-content"> | |
| 29 <defs> | |
| 30 <filter id="null"/> | |
| 31 <filter id="nullreg" filterUnits="objectBoundingBox" x="40%" y="40%" width
="20%" height="20%"/> | |
| 32 </defs> | |
| 33 <g> | |
| 34 <circle r="30" fill="red" cx="130" cy="60"/> | |
| 35 <circle r="40" fill="black" cx="130" cy="60"/> | |
| 36 <text font-size="20" x="130" y="130" text-anchor="middle">No filter</text> | |
| 37 </g> | |
| 38 <g> | |
| 39 <circle r="30" fill="red" cx="130" cy="210"/> | |
| 40 <circle r="40" fill="black" cx="130" cy="210" filter="url(#null)"/> | |
| 41 <text font-size="20" x="130" y="280" text-anchor="middle">Null filter</tex
t> | |
| 42 </g> | |
| 43 <g> | |
| 44 <circle r="30" fill="red" cx="330" cy="60"/> | |
| 45 <circle r="40" fill="black" cx="330" cy="60" filter="url(#notthere)"/> | |
| 46 <text font-size="20" x="330" y="130" text-anchor="middle">Non-existant fil
ter</text> | |
| 47 </g> | |
| 48 <g> | |
| 49 <circle r="30" fill="red" cx="330" cy="210"/> | |
| 50 <circle r="40" fill="black" cx="330" cy="210" filter="url(#nullreg)"/> | |
| 51 <text font-size="20" x="330" y="280" text-anchor="middle">Null with small
region filter</text> | |
| 52 </g> | |
| 53 </g> | |
| 54 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$
Revision: 1.13 $</text> | |
| 55 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke=
"#000000"/> | |
| 56 </svg> | |
| OLD | NEW |