128 lines
7.2 KiB
XML
128 lines
7.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.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-blend-BE-02.svg -->
|
|
<!-- renamed to filters-blend-01-f.svg -->
|
|
<!-- -->
|
|
<!-- Verify correct operation of the five compositing modes of the -->
|
|
<!-- feBlend filter primitive. -->
|
|
<!-- -->
|
|
<!-- Author : Jon Ferraiolo, 15 March 2000 -->
|
|
<!-- Revised for 1.1 : Mike Bultrowicz, 4 February 2002 -->
|
|
<!-- -->
|
|
<!-- History: -->
|
|
<!-- 15-Mar-2000, JF: Serial#1 created. Matches 20000303 SVG spec. -->
|
|
<!-- 16-Mar-2000, LH="editorials" fix name (-02); fix Legend, ser#2. -->
|
|
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
|
|
<!-- 16-Aug-2000, LH="rename" ser#3. -->
|
|
<!-- -->
|
|
<!--======================================================================-->
|
|
<!--======================================================================-->
|
|
<!--= 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="480" height="360">
|
|
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
|
|
<OperatorScript>
|
|
<Paragraph>
|
|
Verify correct operation of the five compositing modes
|
|
of the feBlend filter primitive. Five text strings
|
|
blended into a gradient, with one text string for each of
|
|
the five feBlend modes. The string indicates the blend
|
|
mode.
|
|
</Paragraph>
|
|
<Paragraph>
|
|
The rendered picture should match the reference image
|
|
exactly, except for possible variations in the
|
|
labelling text (per CSS2 rules).
|
|
</Paragraph>
|
|
<Paragraph>
|
|
The test uses a nested 'svg' element, 'text' element,
|
|
the 'enable-background' property, and linear gradients.as
|
|
well as basic fill (solid primary colors), stroke (solid
|
|
primary colors with stroke-width lines), font-family
|
|
(Helvetica) and font-size properties.
|
|
</Paragraph>
|
|
</OperatorScript>
|
|
</SVGTestCase>
|
|
<title id="test-title">filters-blend-01-f</title>
|
|
<desc id="test-desc">Overall filter effects test case. Extracted from example filters00 in the March 3, 2000 spec.</desc>
|
|
<!--======================================================================-->
|
|
<!--Content of Test Case follows... =====================-->
|
|
<!--======================================================================-->
|
|
<g id="test-body-content">
|
|
<!-- Sample Content: framing rectangle drawn just inside viewport boundary. -->
|
|
<g font-size="12" font-family="Verdana" >
|
|
<text x="20" y="30" font-weight="bold">Examples of the five</text>
|
|
<text x="20" y="45" font-weight="bold">feBlend modes.</text>
|
|
<text x="30" y="75">Five text strings blended</text>
|
|
<text x="30" y="90">into a gradient, with one</text>
|
|
<text x="30" y="105">text string for each of the</text>
|
|
<text x="30" y="120">five feBlend modes. The </text>
|
|
<text x="30" y="135">string indicates the blend</text>
|
|
<text x="30" y="150">mode.</text>
|
|
</g>
|
|
<!-- Here is the test case -->
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="200" y="20" width="260" height="260" viewBox="0 0 500 500">
|
|
<title>Example feBlend - Examples of feBlend modes</title>
|
|
<desc>Five text strings blended into a gradient, with one text string for each of the five feBlend modes.</desc>
|
|
<defs>
|
|
<linearGradient id="MyGradient" gradientUnits="userSpaceOnUse" x1="100" y1="0" x2="300" y2="0">
|
|
<stop offset="0" stop-color="#000000" />
|
|
<stop offset=".33" stop-color="#ffffff" />
|
|
<stop offset=".67" stop-color="#ff0000" />
|
|
<stop offset="1" stop-color="#808080" />
|
|
</linearGradient>
|
|
<filter id="Normal">
|
|
<feBlend mode="normal" in2="BackgroundImage" in="SourceGraphic"/>
|
|
</filter>
|
|
<filter id="Multiply">
|
|
<feBlend mode="multiply" in2="BackgroundImage" in="SourceGraphic"/>
|
|
</filter>
|
|
<filter id="Screen">
|
|
<feBlend mode="screen" in2="BackgroundImage" in="SourceGraphic"/>
|
|
</filter>
|
|
<filter id="Darken">
|
|
<feBlend mode="darken" in2="BackgroundImage" in="SourceGraphic"/>
|
|
</filter>
|
|
<filter id="Lighten">
|
|
<feBlend mode="lighten" in2="BackgroundImage" in="SourceGraphic"/>
|
|
</filter>
|
|
</defs>
|
|
<rect fill="none" stroke="blue" x="1" y="1" width="498" height="498"/>
|
|
<g enable-background="new" >
|
|
<rect x="100" y="20" width="300" height="460" fill="url(#MyGradient)" />
|
|
<g font-family="Verdana" font-size="75" fill="#888888" fill-opacity=".6" >
|
|
<text x="50" y="90" filter="url(#Normal)" >Normal</text>
|
|
<text x="50" y="180" filter="url(#Multiply)" >Multiply</text>
|
|
<text x="50" y="270" filter="url(#Screen)" >Screen</text>
|
|
<text x="50" y="360" filter="url(#Darken)" >Darken</text>
|
|
<text x="50" y="450" filter="url(#Lighten)" >Lighten</text>
|
|
</g>
|
|
</g>
|
|
</svg>
|
|
</g>
|
|
<!--======================================================================-->
|
|
<!--Legend and frame: Title, suite and SVG document serialization====-->
|
|
<!--======================================================================-->
|
|
<g id="test-legend" fill="black" font-family="Helvetica" font-size="10">
|
|
<rect x="10" y="300" width="275" height="50" fill="none" stroke="#000000"/>
|
|
<path fill="none" stroke="#000000" d="M10 315 h275 M205 315 v35 M10 336 h195 M205 332 h80"/>
|
|
<text x="25" y="311">Scalable Vector Graphics (SVG) v1.1 Conformance Suite</text>
|
|
<a xlink:href="copyright-documents-19990405.html">
|
|
<text x="12" y="347" fill="blue" >Copyright 2002 W3C. All Rights Reserved.</text>
|
|
</a>
|
|
<text font-size="12" x="35" y="330">filters-blend-01</text>
|
|
<text font-size="10" x="210" y="327">$Revision: 1.1 $</text>
|
|
<text font-size="10" x="210" y="345">Release 1.0</text>
|
|
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
|
</g>
|
|
</svg> |