blob: 51e3c8792405f499edd628dc9814fc1aa6ca7940 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- -->
<!-- masking-clipRule-BE-03.svg -->
<!-- renamed for 1.1 suite to masking-path-05-f.svg -->
<!-- Author : Haroon Sheikh 10-Mar-2000 -->
<!-- 1.1 revision by Charles Ying -->
<!-- further revision by CL -->
<!--======================================================================-->
<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">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.2 $" testname="masking-path-05-f.svg">
<Paragraph>
Test to see if clip-rule property has been implemented properly.
</Paragraph>
<Paragraph>
The test at the top shows a red rectangle that has been clipped by a
clipping path that overlaps itself. The clip-rule is defined to be evenodd
so the overlap should have a hole in it.
</Paragraph>
<Paragraph>
The test at the bottom shows a blue rectangle that has been clipped by a
clipping path that overlaps itself. The clip-rule is defined to be nonzero
so the overlap should be filled.
</Paragraph>
<Paragraph>
The rendered picture should match the reference image exactly, except for possible
variations in the labelling text (per CSS2 rules).
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">masking-path-05-f</title>
<desc id="test-desc">Test to see if clip-rule property has been implemented properly.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<text font-family="Arial" font-size="14" x="150" y="20">Test for clip-rule property.</text>
<clipPath id="clip1">
<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"/>
</clipPath>
<rect x="50" y="30" width="350" height="100" fill="red" clip-path="url(#clip1)"/>
<text font-family="Arial" font-size="12" x="100" y="140">clip-rule=evenodd</text>
<clipPath id="clip2">
<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"/>
</clipPath>
<rect x="50" y="160" width="350" height="100" fill="blue" clip-path="url(#clip2)"/>
<text font-family="Arial" font-size="12" x="100" y="270">cliprule=nonzero</text>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.2 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>