Debian Codegraph @

test_non_regression/fail/filter/filters-tile-01-b.svg

raw
1 <svg version="1.1" baseProfile="basic" preserveAspectRatio="xMidYMid meet" zoomAndPan="magnify" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="SVGWG" author="Rick Graham" status="accepted"
15 version="$Revision: 1.8 $" testname="$RCSfile: filters-tile-01-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feTileElement">
17 <p>
18 The test case constructs a filter that uses feTile to tile the entire specified filter region.
19 The tile consists of a green rectangle over a larger transparent rectangle.
20 The green rectangle is created with feFlood and feOffset. There is also a semi-transparent
21 blue rectangle that should exactly cover one of the tiled rectangles, creating a purple
22 tile with a black stroke (4 tiles down and 3 across).
23 </p>
24 <p>
25 The test uses the 'rect' element, feTile, feFlood, feOffset, feMerge, fill style, stroke,
26 font-family and font-size properties.
27 </p>
28 </d:testDescription>
29 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 Run the test. No interaction required.
32 </p>
33 </d:operatorScript>
34 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
35 <p>
36 The rendered picture should match the reference image, except for possible variations
37 in the labelling text (per CSS2 rules).
38 </p>
39 </d:passCriteria>
40 </d:SVGTestCase>
41 <title id="test-title">$RCSfile: filters-tile-01-b.svg,v $</title>
42 <defs>
43 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
44 <font-face-src>
45 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
46 </font-face-src>
47 </font-face>
48 </defs>
49 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
50 <text font-size="15" x="240" y="25" text-anchor="middle">feTile filter test: a tiled pattern</text>
51 <!-- ====================================================================== -->
52 <!-- Tiled created in defs then applied to rectangle -->
53 <!-- this seems pretty complex to me -->
54 <!-- ====================================================================== -->
55 <defs>
56 <filter id="feTileFilter" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse" x="115" y="40" width="250" height="250">
57 <feFlood x="115" y="40" width="54" height="19" flood-color="lime"/>
58 <feOffset x="115" y="40" width="50" height="25" dx="6" dy="6" result="offset"/>
59 <feTile/>
60 </filter>
61 </defs>
62 <!-- The 'g' has no content, but the filter causes a rectangle
63 to be created which is filled with a tiled pattern. -->
64 <g filter="url(#feTileFilter)"/>
65 <!-- Show the outline of the rectangle which is filled with the tiled pattern. -->
66 <rect x="115" y="40" width="250" height="250" fill="none" stroke="blue" stroke-width="2"/>
67 <!-- draw a semi-transparent rectangle over one of the tiles -->
68 <rect x="215" y="115" width="50" height="25" fill="blue" fill-opacity="0.5" stroke="black"/>
69 </g>
70 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
71 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
72 </g>
73 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
74 <!-- comment out this watermark once the test is approved -->
75 <!--<g id="draft-watermark">
76 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
77 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
78 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
79 </g>-->
80 </svg>