blob: c35c56da64e12b54d2578e3d1f70aa4acf1f4382 [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" >
<!--
Copyright 1999-2003,2005 The Apache Software Foundation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- ========================================================================= -->
<!-- @author deweese@kodak.com -->
<!-- @version $Id $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500">
<title>
enable-background Test on&lt;
svg>
</title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="40" class="title">
Enable-Background Test on&lt;
svg>
</text>
<g transform="translate(0, 60)">
<defs>
<g id="uglyBlobs">
<circle id="Circle1" cx="20" cy="65" r="15"
style="fill:orange"/>
<circle id="Circle2" cx="40" cy="55" r="15" style="fill:red"/>
<rect id="Rect1" x="20" y="35" width="15" height="70"
style="fill:DarkBlue"/>
<rect id="Rect2" x="30" y="15" width="15" height="70"
rx="10" ry="10" style="fill:Yellow"/>
</g>
<filter id="OffsetBGX" filterUnits="userSpaceOnUse" x="0" y="0"
width="120" height="120">
<feOffset in="BackgroundImage" dx="60" dy="0"/>
</filter>
<filter id="OffsetBGY" filterUnits="userSpaceOnUse" x="0" y="0"
width="440" height="260">
<feOffset in="BackgroundImage" dx="0" dy="140"/>
</filter>
</defs>
<g transform="translate(0 40)" class="legend">
<!-- ============================================== -->
<!-- Enable Background_1_* -->
<!-- ============================================== -->
<svg class="row1" width="421" height="400"
style="enable-background:new 19 30 403 60">
<g transform="translate(20 0)"
style="enable-background:new;">
<rect x="0" y="0" width="60" height="120"
style="fill:Beige"/>
<use xlink:href="#uglyBlobs"/>
<rect x="0" y="0" width="1" height="1"
style="filter:url(#OffsetBGX)"/>
<rect x="0" y="0" width="60" height="120"
style="fill:none; stroke:black; stroke-width:2"/>
<rect x="60" y="0" width="60" height="120"
style="fill:none; stroke:black; stroke-width:2"/>
<g transform="translate(60, 135)">
<text x="0" y="0" style="text-anchor:middle">
Left Copied to right
</text>
</g>
</g>
<g transform="translate(160 0)">
<line x1="-5" y1="20" x2="125" y2="45"
style="stroke-width:5; stroke:#AA3333"/>
<line x1="-5" y1="100" x2="125" y2="75"
style="stroke-width:5; stroke:#AA3333"/>
<g style="enable-background:new">
<rect x="0" y="0" width="60" height="120"
style="fill:Beige"/>
<g style="opacity: 0.75">
<rect x="5" y="5" width="50" height="50"
style="fill:deepPink"/>
<use xlink:href="#uglyBlobs"
style="opacity:0.75"/>
<rect x="0" y="0" width="120" height="120"
style="filter:url(#OffsetBGX)"/>
</g>
</g>
<rect x="0" y="0" width="60" height="120"
style="fill:none; stroke:black; stroke-width:2"/>
<rect x="60" y="0" width="60" height="120"
style="fill:none; stroke:black; stroke-width:2"/>
<g transform="translate(60, 135)">
<text x="0" y="0" style="text-anchor:middle">
Right is transparent
</text>
</g>
</g>
<g transform="translate(300 0)">
<line x1="-5" y1="20" x2="125" y2="45"
style="stroke-width:5; stroke:#AA3333"/>
<line x1="-5" y1="100" x2="125" y2="75"
style="stroke-width:5; stroke:#AA3333"/>
<rect x="0" y="0" width="60" height="120"
style="fill:Beige"/>
<g style="enable-background:new">
<ellipse cx="25" cy="45" rx="20" ry="30"
style="fill:#AA00CC"/>
<g style="opacity: 0.75">
<use xlink:href="#uglyBlobs"/>
<rect x="0" y="0" width="120" height="120"
style="filter:url(#OffsetBGX)"/>
</g>
</g>
<rect x="0" y="0" width="60" height="120"
style="fill:none; stroke:black; stroke-width:2"/>
<rect x="60" y="0" width="60" height="120"
style="fill:none; stroke:black; stroke-width:2"/>
<g transform="translate(60, 135)">
<text x="0" y="0" style="text-anchor:middle">
Blobs opaquely merged w/ oval
</text>
</g>
</g>
<!-- ============================================== -->
<!-- BGEnable _2_* -->
<!-- ============================================== -->
<rect x="0" y="0" width="10" height="10"
style="filter:url(#OffsetBGY)"/>
<g transform="translate(220, 270)">
<text x="0" y="0" style="text-anchor:middle">
Copy of middle of first row (by setting
enable-background bounds)
</text>
</g>
</svg>
</g>
</g>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box"/>
</svg>