Debian Codegraph @

test_non_regression/svg/painting-fill-05-b.svg

raw
1 <svg version="1.1" baseProfile="tiny" 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="DJ" author="CN" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: painting-fill-05-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#FillProperties">
17 <p>
18 Test using "fill-opacity" values for "rect" element.
19 This test verifies that opacity is clamped to the
20 specified range.
21 </p>
22 </d:testDescription>
23 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
24 <p>
25 Run the test. No interaction required.
26 </p>
27 </d:operatorScript>
28 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
29 <p>
30 The six rect elements on the left have varying 'fill-opacity' values
31 within the valid range of 0 to 1. The six elements on the right have
32 'fill-opacity' values outside the 0 to 1 range, and must be clamped.
33 The top three rect elements on the right must have their 'fill-opacity'
34 clamped to 0, while the bottom three rect elements on the right must
35 be clamped to 1.
36 </p>
37 </d:passCriteria>
38 </d:SVGTestCase>
39 <title id="test-title">$RCSfile: painting-fill-05-b.svg,v $</title>
40 <defs>
41 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
42 <font-face-src>
43 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
44 </font-face-src>
45 </font-face>
46 </defs>
47 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
48
49 <!-- Use multiple values for opacity -->
50 <rect x="20" y="20" width="60" height="60" fill-opacity="0.0" fill="#0000FF" stroke="black"/>
51 <rect x="50" y="50" width="60" height="60" fill-opacity="0.2" fill="#0000FF" stroke="black"/>
52 <rect x="80" y="80" width="60" height="60" fill-opacity="0.4" fill="#0000FF" stroke="black"/>
53 <rect x="110" y="110" width="60" height="60" fill-opacity="0.6" fill="#0000FF" stroke="black"/>
54 <rect x="140" y="140" width="60" height="60" fill-opacity="0.8" fill="#0000FF" stroke="black"/>
55 <rect x="170" y="170" width="60" height="60" fill-opacity="1.0" fill="#0000FF" stroke="black"/>
56 <!-- Values outside the range 0.0 - 1.0 should be clamped to this range -->
57 <rect x="200" y="20" width="60" height="60" fill-opacity="-100.0" fill="#0000FF" stroke="black"/>
58 <rect x="230" y="50" width="60" height="60" fill-opacity="-10.0" fill="#0000FF" stroke="black"/>
59 <rect x="260" y="80" width="60" height="60" fill-opacity="-0.1" fill="#0000FF" stroke="black"/>
60 <rect x="290" y="110" width="60" height="60" fill-opacity="1.1" fill="#0000FF" stroke="black"/>
61 <rect x="320" y="140" width="60" height="60" fill-opacity="10.0" fill="#0000FF" stroke="black"/>
62 <rect x="350" y="170" width="60" height="60" fill-opacity="100.0" fill="#0000FF" stroke="black"/>
63
64 </g>
65 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
66 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
67 </g>
68 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
69 <!-- comment out this watermark once the test is approved -->
70 <!--<g id="draft-watermark">
71 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
72 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
73 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
74 </g>-->
75 </svg>