1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.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 <!-- ===================================================================== -->
11 <!-- masking-clipRule-BE-03.svg -->
12 <!-- renamed for 1.1 suite to masking-path-05-f.svg -->
13 <!-- Author : Haroon Sheikh 10-Mar-2000 -->
14 <!-- 1.1 revision by Charles Ying -->
15 <!-- further revision by CL -->
16 <!--======================================================================-->
17 <svg version=
"1.1" baseProfile=
"basic" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360">
18 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/">
19 <OperatorScript version=
"$Revision: 1.2 $" testname=
"masking-path-05-f.svg">
21 Test to see if clip-rule property has been implemented properly.
24 The test at the top shows a red rectangle that has been clipped by a
25 clipping path that overlaps itself. The clip-rule is defined to be evenodd
26 so the overlap should have a hole in it.
29 The test at the bottom shows a blue rectangle that has been clipped by a
30 clipping path that overlaps itself. The clip-rule is defined to be nonzero
31 so the overlap should be filled.
34 The rendered picture should match the reference image exactly, except for possible
35 variations in the labelling text (per CSS2 rules).
39 <title id=
"test-title">masking-path-
05-f
</title>
40 <desc id=
"test-desc">Test to see if clip-rule property has been implemented properly.
</desc>
41 <!--======================================================================-->
42 <!--Content of Test Case follows... =====================-->
43 <!--======================================================================-->
44 <g id=
"test-body-content">
45 <text font-family=
"Arial" font-size=
"14" x=
"150" y=
"20">Test for clip-rule property.
</text>
47 <path clip-rule=
"evenodd" d=
"M200,40l20,0 0,60 20,0 0,-20 -60,0 0,-20 80,0 0,60 -60,0 0,-80z"/>
49 <rect x=
"50" y=
"30" width=
"350" height=
"100" fill=
"red" clip-path=
"url(#clip1)"/>
50 <text font-family=
"Arial" font-size=
"12" x=
"100" y=
"140">clip-rule=evenodd
</text>
52 <path clip-rule=
"nonzero" d=
"M200,170l20,0 0,60 20,0 0,-20 -60,0 0,-20 80,0 0,60 -60,0 0,-80z"/>
54 <rect x=
"50" y=
"160" width=
"350" height=
"100" fill=
"blue" clip-path=
"url(#clip2)"/>
55 <text font-family=
"Arial" font-size=
"12" x=
"100" y=
"270">cliprule=nonzero
</text>
57 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.2 $
</text>
58 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>