chromium/third_party/blink/web_tests/svg/W3C-SVG-1.1/filters-composite-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/.                =-->
<!--======================================================================-->
<!--======================================================================-->
<!--                                                                      -->
<!-- filters-composite-02-b.svg                                          -->
<!--                                                                      -->
<!-- Test which verifies the basic facilities of feComposite.             -->
<!--                                                                      -->
<!-- Author : Jon Ferraiolo 03-Apr-2000                                   -->
<!-- Revised for 1.1 : Mike Bultrowicz, 4 February 2002                   -->
<!-- Modified for svg 1.1 basic profile by Luc Minnebo, 05-July-2002      -->     
<!--                                                                      -->
<!-- History:                                                             -->
<!--  04-Apr-2000, JF: Serial#1 created.                                  -->
<!--  03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# .       -->
<!--  16-Aug-2000, LH="rename" ser#2.                                     -->
<!--                                                                      -->
<!--======================================================================-->
<!--======================================================================-->
<!--= 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" width="100%" height="100%" viewBox="0 0 480 360" version="1.1" baseProfile="basic">
    <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<!--nav data here-->
		<OperatorScript version="$Revision: 1.5 $" testname="filters-composite-02-b.svg">
			<Paragraph>
				Test which verifies the basic facilities of feComposite.
			</Paragraph> 
			<Paragraph>
				This test uses the following elements: &lt;path&gt;, &lt;filter&gt; 
			        &lt;feImage&gt; &lt;feComposite&gt;.
			</Paragraph> 
			<Paragraph>
				The test case shows six pairs of overlapping triangles 
				depicting the six different feComposite operators. The 
				first row shows compositing when both triangles have 
				opacity=1. The second row shows compositing when both 
				triangles have opacity=.5. The six columns illustrate the 
				six types of compositing operations.
			</Paragraph> 
        </OperatorScript>
    </SVGTestCase>
	<title id="test-title">filters-composite-02-b</title>
	<desc id="test-desc">Test which verifies the basic facilities of feComposite.</desc>
	<!--======================================================================-->
	<!--Content of Test Case follows...                  =====================-->
	<!--======================================================================-->
	<g id="test-body-content" transform="translate(15 -60)">
		<title>Example feComposite - Examples of feComposite operations</title>
		<desc>Six pairs of overlapping triangles depicting the six different feComposite operators.</desc>
		<defs>
			<path id="Blue100" d="M 0 0 L 150 0 L 150 150 z" fill="#00ffff" />
			<path id="Red100" d="M 0 0 L 0 150 L 150 0 z" fill="#ff00ff" />
			<path id="Blue50" d="M 0 0 L 150 0 L 150 150 z" fill="#00ffff" fill-opacity="0.5"/>
			<path id="Red50" d="M 0 0 L 0 150 L 150 0 z" fill="#ff00ff" fill-opacity="0.5"/>

                        <filter id="over" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue100" result="blue"/>
                            <feImage xlink:href="#Red100" result="red"/>
                            <feComposite in2="blue" in="red" operator="over" />
                        </filter>

                        <filter id="over50" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue50" result="blue"/>
                            <feImage xlink:href="#Red50" result="red"/>
                            <feComposite in2="blue" in="red" operator="over" />
                        </filter>

                        <filter id="in" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue100" result="blue"/>
                            <feImage xlink:href="#Red100" result="red"/>
                            <feComposite in2="blue" in="red" operator="in" />
                        </filter>

                        <filter id="in50" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue50" result="blue"/>
                            <feImage xlink:href="#Red50" result="red"/>
                            <feComposite in2="blue" in="red" operator="in" />
                        </filter>

                        <filter id="out" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue100" result="blue"/>
                            <feImage xlink:href="#Red100" result="red"/>
                            <feComposite in2="blue" in="red" operator="out" />
                        </filter>

                        <filter id="out50" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue50" result="blue"/>
                            <feImage xlink:href="#Red50" result="red"/>
                            <feComposite in2="blue" in="red" operator="out" />
                        </filter>

                        <filter id="atop" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue100" result="blue"/>
                            <feImage xlink:href="#Red100" result="red"/>
                            <feComposite in2="blue" in="red" operator="atop" />
                        </filter>

                        <filter id="atop50" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue50" result="blue"/>
                            <feImage xlink:href="#Red50" result="red"/>
                            <feComposite in2="blue" in="red" operator="atop" />
                        </filter>

                        <filter id="xor" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue100" result="blue"/>
                            <feImage xlink:href="#Red100" result="red"/>
                            <feComposite in2="blue" in="red" operator="xor" />
                        </filter>

                        <filter id="xor50" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue50" result="blue"/>
                            <feImage xlink:href="#Red50" result="red"/>
                            <feComposite in2="blue" in="red" operator="xor" />
                        </filter>

                        <filter id="arithmetic" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue100" result="blue"/>
                            <feImage xlink:href="#Red100" result="red"/>
                            <feComposite in2="blue" in="red" operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/>
                        </filter>

                        <filter id="arithmetic50" x="0" y="0" width="1" height="1">
                            <feImage xlink:href="#Blue50" result="blue"/>
                            <feImage xlink:href="#Red50" result="red"/>
                            <feComposite in2="blue" in="red" operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/>
                        </filter>
		</defs>
		<g font-family="Verdana" font-size="60" shape-rendering="crispEdges"  transform="translate(5,70) scale(.4)">
			<rect fill="none" stroke="blue"  x="1" y="1" width="1098" height="723"/>
			<text x="100" y="75">on first Row : opacity 1.0</text>
			<text x="100" y="180">on second row opacity 0.5</text>

                        <g transform="translate(15,230)">
                            <rect x="0" y="0" width="150" height="150" filter="url(#over)"/>
                            <text x="10" y="400">over</text>
                        </g>

			<g transform="translate(15,430)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#over50)"/>
			</g>

			<g transform="translate(195,230)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#in)"/>
                            <text x="10" y="400">in</text>
			</g>

			<g transform="translate(195,430)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#in50)"/>
			</g>

			<g transform="translate(375,230)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#out)"/>
                            <text x="10" y="400">out</text>
			</g>
			<g transform="translate(375,430)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#out50)"/>
			</g>

			<g transform="translate(555,230)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#atop)"/>
                            <text x="10" y="400">atop</text>
			</g>
			<g transform="translate(555,430)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#atop50)"/>
			</g>

			<g transform="translate(735,230)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#xor)"/>
                            <text x="10" y="400">xor</text>
			</g>
			<g transform="translate(735,430)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#xor50)"/>
			</g>
			<g transform="translate(915,230)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#arithmetic)"/>
                            <text x="-25" y="400">arith-</text>
                            <text x="-25" y="470">metic</text>
			</g>
			<g transform="translate(915,430)"  >
                            <rect x="0" y="0" width="150" height="150" filter="url(#arithmetic50)"/>
			</g>
		</g>
	</g>
	<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
	<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>