chromium/third_party/blink/web_tests/svg/W3C-SVG-1.1/masking-path-02-b.svg

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.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-clipPath-BE-02.svg                                           -->
<!-- renamed for 1.1 suite to masking-path-02-b.svg		                  -->
<!--                                                                      -->
<!--  Test to see if clipPathUnits attribute is handled properly on a     -->
<!--  clipPath element. Only tests the userSpaceOnUse and                 -->
<!--  objectBoundingBox items of the clipPathUnits. userSpace has been    -->
<!--  tested by the previous test as it is the default.                   -->
<!--                                                                      -->
<!-- Author : Haroon Sheikh 10-Mar-2000                                   -->
<!-- Revised for 1.1 : Jun Fujisawa 19-Feb-2002                           -->
<!--                                                                      -->
<!-- History:                                                             -->
<!--  10-Mar-2000, HSS: Serial#1 created.                                 -->
<!--  17-Mar-2000, LH=" fix BE" fix Legend; ser#2.                        -->
<!--  27-Apr-2000, LH=" fix missing "#" on url(clip2)" ser#3.             -->
<!--  03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# .       -->
<!--  16-Aug-2000, LH="rename" ser#4.                                     -->
<!--                                                                      -->
<!-- =====================================================================-->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"  id="svg-root" viewBox="0 0 480 360" width="100%" height="100%" version="1.1" baseProfile="basic">
	<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
		<OperatorScript version="$Revision: 1.4 $" testname="masking-path-02-b.svg">
			<Paragraph>
				Test to see if clipPathUnits attribute is handled properly on a 
				clipPath element. Only tests the userSpaceOnUse and 
				objectBoundingBox items of the clipPathUnits. userSpace has been 
				tested by the previous test as it is the default.
			</Paragraph>
			<Paragraph>
				The test at the top shows a red rectangle that has been clipped by a 
				rectangular clipping path. The clipping path is defined using clipPathUnits=objectBoundingBox.
				Only the bottom-right portion of the red rectangle should be visible.
			</Paragraph>
			<Paragraph>
				The example at the bottom a rotated blue rectangle that has been clipped by a
				rectangular clipping path. The clipping path is defined using clipPathUnits=userSpaceOnUse.
				As a result only the bottom-right portion of the rectangle should be visible.
			</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-02-b</title>
	<desc id="test-desc">Test to see if clipPathUnits attribute is handled properly on a clipPath element. Only tests the userSpaceOnUse and objectBoundingBox items of the clipPathUnits. userSpace has been tested by the previous test as it is the default.</desc>
	<!--======================================================================-->
	<!--Content of Test Case follows...                  =====================-->
	<!--======================================================================-->
	<g id="test-body-content">
		<clipPath id="clip1" clipPathUnits="objectBoundingBox">
			<rect x=".25" y=".5" width=".6" height="1"/>
		</clipPath>
		<rect x="10" y="10" width="430" height="80" fill="red" clip-path="url(#clip1)"/>
		<text font-family="Arial" font-size="30" x="20" y="130">clipPathUnits=objectBoundingBox</text>
		<clipPath id="clip2" clipPathUnits="userSpaceOnUse">
			<rect x="60" y="60" width="80" height="80"/>
		</clipPath>
		<rect transform="translate(100 200) rotate(-45)" x="0" y="0" width="120" height="120" fill="blue" clip-path="url(#clip2)" />
		<text font-family="Arial" font-size="30" x="20" y="280">clipPathUnits=userSpaceOnUse</text>
	</g>
	<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.4 $</text>
	<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>