Debian Codegraph @

test_non_regression/svg/coords-viewattr-03-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="CL" author="BB" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: coords-viewattr-03-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute">
17 <p>
18 This file tests the allowed syntax of the viewBox attribute. The viewBox attribute is a list of
19 four numbers min-x, min-y, width and height, separated by whitespace and/or a comma.
20 </p>
21 </d:testDescription>
22 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
23 <p>
24 Run the test. No interaction required.
25 </p>
26 </d:operatorScript>
27 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
28 <p>
29 In the rendered result, you should see 6 identical light blue shapes.
30 </p>
31 </d:passCriteria>
32 </d:SVGTestCase>
33 <title id="test-title">$RCSfile: coords-viewattr-03-b.svg,v $</title>
34 <defs>
35 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
36 <font-face-src>
37 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
38 </font-face-src>
39 </font-face>
40 </defs>
41 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
42 <text font-size="20" x="240" y="28" text-anchor="middle">&lt;svg&gt; 'viewBox' attribute</text>
43
44 <g fill="lightblue" stroke="black">
45
46 <svg x="35" y="50" width="100" height="100" viewBox="0 0 200 200" overflow="visible">
47 <path fill-rule="evenodd" d="M20,20 Q180,20 180,180 Q20,180 20,20 Z M20,180 Q20,20 180,20 Q180,180 20,180 Z M100,40 L160,100 100,160 40,100 Z"/>
48 </svg>
49 <text font-size="13.5" x="85" y="155" text-anchor="middle" fill="black" stroke="none">viewBox="0 0 200 200"</text>
50 <text font-size="13.5" x="85" y="170" text-anchor="middle" fill="black" stroke="none">overflow="visible" </text>
51
52 <svg x="35" y="180" width="100" height="100" viewBox="0 0 200 200" overflow="hidden">
53 <path fill-rule="evenodd" d="M20,20 Q180,20 180,180 Q20,180 20,20 Z M20,180 Q20,20 180,20 Q180,180 20,180 Z M100,40 L160,100 100,160 40,100 Z"/>
54 </svg>
55 <text font-size="13.5" x="85" y="285" text-anchor="middle" fill="black" stroke="none">viewBox="0 0 200 200"</text>
56 <text font-size="13.5" x="85" y="300" text-anchor="middle" fill="black" stroke="none">overflow="hidden" </text>
57
58 <svg x="190" y="50" width="100" height="100" viewBox="0,0,200,200" overflow="visible">
59 <path fill-rule="evenodd" d="M20,20 Q180,20 180,180 Q20,180 20,20 Z M20,180 Q20,20 180,20 Q180,180 20,180 Z M100,40 L160,100 100,160 40,100 Z"/>
60 </svg>
61 <text font-size="13.5" x="240" y="155" text-anchor="middle" fill="black" stroke="none">viewBox="0,0,200,200"</text>
62 <text font-size="13.5" x="240" y="170" text-anchor="middle" fill="black" stroke="none">overflow="visible" </text>
63
64 <svg x="190" y="180" width="100" height="100" viewBox="0,0,200,200" overflow="hidden">
65 <path fill-rule="evenodd" d="M20,20 Q180,20 180,180 Q20,180 20,20 Z M20,180 Q20,20 180,20 Q180,180 20,180 Z M100,40 L160,100 100,160 40,100 Z"/>
66 </svg>
67 <text font-size="13.5" x="240" y="285" text-anchor="middle" fill="black" stroke="none">viewBox="0,0,200,200"</text>
68 <text font-size="13.5" x="240" y="300" text-anchor="middle" fill="black" stroke="none">overflow="hidden" </text>
69
70 <svg x="345" y="50" width="100" height="100" viewBox="0,0, 200, 200" overflow="visible">
71 <path fill-rule="evenodd" d="M20,20 Q180,20 180,180 Q20,180 20,20 Z M20,180 Q20,20 180,20 Q180,180 20,180 Z M100,40 L160,100 100,160 40,100 Z"/>
72 </svg>
73 <text font-size="13.5" x="395" y="155" text-anchor="middle" fill="black" stroke="none">viewBox="0,0, 200, 200"</text>
74 <text font-size="13.5" x="395" y="170" text-anchor="middle" fill="black" stroke="none">overflow="visible" </text>
75
76 <svg x="345" y="180" width="100" height="100" viewBox="0,0, 200, 200" overflow="hidden">
77 <path fill-rule="evenodd" d="M20,20 Q180,20 180,180 Q20,180 20,20 Z M20,180 Q20,20 180,20 Q180,180 20,180 Z M100,40 L160,100 100,160 40,100 Z"/>
78 </svg>
79 <text font-size="13.5" x="395" y="285" text-anchor="middle" fill="black" stroke="none">viewBox="0,0, 200, 200"</text>
80 <text font-size="13.5" x="395" y="300" text-anchor="middle" fill="black" stroke="none">overflow="hidden" </text>
81
82 </g>
83 </g>
84 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
85 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
86 </g>
87 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
88 <!-- comment out this watermark once the test is approved -->
89 <!--<g id="draft-watermark">
90 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
91 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
92 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
93 </g>-->
94 </svg>