Debian Codegraph @

test_non_regression/svg/masking-path-04-b.svg

raw
1 <svg version="1.1" baseProfile="basic" 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="Chris Lilley" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: masking-path-04-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#ClippingPaths">
17 <p>
18 This test exercises basic user-specified clip paths, using a text
19 string (i.e., content of a 'text' element) as the clip path.
20 </p>
21 <p>
22 There is a rectangular image of a swirly blue pattern with large
23 yellow text, "Clip Test" superimposed. The image is a PNG file,
24 imported into the picture via the 'image' element.
25 </p>
26 <p>
27 The test uses the 'rect' element, as well as basic fill (solid primary
28 colors), stroke (black 1-pixel lines), font-family (Arial and
29 Impact) and font-size properties.
30 </p>
31 </d:testDescription>
32 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
33 <p>
34 Run the test. No interaction required.
35 </p>
36 </d:operatorScript>
37 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
38 <p>
39 The rendered picture should match the reference image, except for
40 possible variations in the labelling text (per CSS2 rules).
41 </p>
42 </d:passCriteria>
43 </d:SVGTestCase>
44 <title id="test-title">$RCSfile: masking-path-04-b.svg,v $</title>
45 <defs>
46 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
47 <font-face-src>
48 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
49 </font-face-src>
50 </font-face>
51 </defs>
52 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
53 <g shape-rendering="geometricPrecision">
54 <defs>
55 <clipPath id="sample" clipPathUnits="userSpaceOnUse">
56 <text x="45" y="270" font-size="100" font-family="Anglepoise">Clip Test</text>
57 </clipPath>
58 </defs>
59
60 <g>
61 <image xlink:href="../images/bluesquidj.png" preserveAspectRatio="none" x="30" y="20" width="410" height="140"/>
62 <text x="55" y="130" font-size="100" font-family="Anglepoise" fill="yellow">Clip Test</text>
63 </g>
64 <g>
65 <image xlink:href="../images/bluesquidj.png" preserveAspectRatio="none" x="20" y="170" width="410" height="160" clip-path="url(#sample)"/>
66 </g>
67 </g>
68 </g>
69 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
70 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
71 </g>
72 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
73 <!-- comment out this watermark once the test is approved -->
74 <!--<g id="draft-watermark">
75 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
76 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
77 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
78 </g>-->
79 </svg>