Debian Codegraph @

test_non_regression/svg/struct-image-19-f.svg

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2008 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="[reviewer]" author="ED" status="created"
15 version="$Revision: 1.1 $" testname="$RCSfile: struct-image-19-f.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#ImageElement">
17 <p>
18 Test referencing an svg from an 'image' element, where the referenced
19 svg has a viewBox and a larger width and height than the 'image'
20 element viewport.
21 </p>
22 <p>
23 The same image resource is reference twice, and will scale to fit the
24 viewport that is established by the 'image' element.
25 </p>
26 </d:testDescription>
27 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
28 <p>
29 Run the test. No interaction required.
30 </p>
31 </d:operatorScript>
32 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
33 <p>
34 The test is passed if two green circles are displayed, and no red.
35 </p>
36 </d:passCriteria>
37 </d:SVGTestCase>
38 <title id="test-title">$RCSfile: struct-image-19-f.svg,v $</title>
39 <defs>
40 <font-face
41 font-family="SVGFreeSansASCII"
42 unicode-range="U+0-7F">
43 <font-face-src>
44 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
45 </font-face-src>
46 </font-face>
47 </defs>
48 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
49 <g transform="scale(4) translate(-25 -25)">
50 <circle cx="62.5" cy="62.5" r="10" fill="red"/>
51 <circle cx="100" cy="75" r="20" fill="red"/>
52 <image xlink:href="../images/50x50-viewbox-greencircle.svg" width="25" height="25" x="50" y="50"/>
53 <image xlink:href="../images/50x50-viewbox-greencircle.svg" width="50" height="50" x="75" y="50"/>
54 </g>
55 </g>
56 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
57 <text id="revision" x="10" y="340" stroke="none"
58 fill="black">$Revision: 1.1 $</text>
59 </g>
60 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
61 <!-- comment out this watermark once the test is approved -->
62 <g id="draft-watermark">
63 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
64 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
65 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
66 </g>
67 </svg>