1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
3 <!--======================================================================-->
4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
5 <!--= Institute of Technology, Institut National de Recherche en =-->
6 <!--= Informatique et en Automatique, Keio University). All Rights =-->
7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" version=
"1.1" baseProfile=
"tiny" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360">
10 <SVGTestCase xmlns:
testcase=
"http://www.w3.org/2000/02/svg/testsuite/description/" xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/" reviewer=
"DJ" owner=
"CN" desc=
"Test using fill-opacity values for rect element." status=
"accepted" version=
"$Revision: 1.1 $" testname=
"$RCSfile: painting-fill-05-b.svg,v $">
13 Test using
"fill-opacity" values for
"rect" element.
14 This test verifies that opacity is clamped to the
19 <title id=
"test-title">$RCSfile: painting-fill-
05-b.svg,v $
</title>
20 <g id=
"test-body-content">
22 <!-- Use multiple values for opacity -->
23 <rect x=
"20" y=
"20" width=
"60" height=
"60" fill-opacity=
"0.0" fill=
"#0000FF" stroke=
"black"/>
24 <rect x=
"50" y=
"50" width=
"60" height=
"60" fill-opacity=
"0.2" fill=
"#0000FF" stroke=
"black"/>
25 <rect x=
"80" y=
"80" width=
"60" height=
"60" fill-opacity=
"0.4" fill=
"#0000FF" stroke=
"black"/>
26 <rect x=
"110" y=
"110" width=
"60" height=
"60" fill-opacity=
"0.6" fill=
"#0000FF" stroke=
"black"/>
27 <rect x=
"140" y=
"140" width=
"60" height=
"60" fill-opacity=
"0.8" fill=
"#0000FF" stroke=
"black"/>
28 <rect x=
"170" y=
"170" width=
"60" height=
"60" fill-opacity=
"1.0" fill=
"#0000FF" stroke=
"black"/>
29 <!-- Values ouside the range 0.0 - 1.0 should be clamped to thsi range -->
30 <rect x=
"200" y=
"20" width=
"60" height=
"60" fill-opacity=
"-100.0" fill=
"#0000FF" stroke=
"black"/>
31 <rect x=
"230" y=
"50" width=
"60" height=
"60" fill-opacity=
"-10.0" fill=
"#0000FF" stroke=
"black"/>
32 <rect x=
"260" y=
"80" width=
"60" height=
"60" fill-opacity=
"-0.1" fill=
"#0000FF" stroke=
"black"/>
33 <rect x=
"290" y=
"110" width=
"60" height=
"60" fill-opacity=
"1.1" fill=
"#0000FF" stroke=
"black"/>
34 <rect x=
"320" y=
"140" width=
"60" height=
"60" fill-opacity=
"10.0" fill=
"#0000FF" stroke=
"black"/>
35 <rect x=
"350" y=
"170" width=
"60" height=
"60" fill-opacity=
"100.0" fill=
"#0000FF" stroke=
"black"/>
38 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.1 $
</text>
39 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>