| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| 3 |
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
|
| 7 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 8 |
contributor license agreements. See the NOTICE file distributed with |
| 9 |
this work for additional information regarding copyright ownership. |
| 10 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 11 |
(the "License"); you may not use this file except in compliance with |
| 12 |
the License. You may obtain a copy of the License at |
| 13 |
|
| 14 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 15 |
|
| 16 |
Unless required by applicable law or agreed to in writing, software |
| 17 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
See the License for the specific language governing permissions and |
| 20 |
limitations under the License. |
| 21 |
|
| 22 |
--> |
| 23 |
<!-- ========================================================================= --> |
| 24 |
<!-- Test description here --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id $ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
|
| 30 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 31 |
|
| 32 |
<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"> |
| 33 |
<title>enable-background Test</title> |
| 34 |
|
| 35 |
<!-- ============================================================= --> |
| 36 |
<!-- Test content --> |
| 37 |
<!-- ============================================================= --> |
| 38 |
<g id="testContent"> |
| 39 |
|
| 40 |
<text x="225" y="40" class="title"> |
| 41 |
Enable-Background Test |
| 42 |
</text> |
| 43 |
|
| 44 |
<g transform="translate(0, 60)"> |
| 45 |
<defs> |
| 46 |
<g id="uglyBlobs" > |
| 47 |
<circle id="Circle1" cx="20" cy="65" r="15" style="fill:orange" /> |
| 48 |
|
| 49 |
<circle id="Circle2" cx="40" cy="55" r="15" style="fill:red" /> |
| 50 |
|
| 51 |
<rect id="Rect1" x="20" y="35" width="15" height="70" |
| 52 |
style="fill:DarkBlue" /> |
| 53 |
|
| 54 |
<rect id="Rect2" x="30" y="15" width="15" height="70" |
| 55 |
rx="10" ry="10" |
| 56 |
style="fill:Yellow" /> |
| 57 |
</g> |
| 58 |
|
| 59 |
<filter id="OffsetBGX" filterUnits="userSpaceOnUse" |
| 60 |
x="0" y="0" width="120" height="120" > |
| 61 |
<feOffset in="BackgroundImage" dx="60" dy="0" /> |
| 62 |
</filter> |
| 63 |
|
| 64 |
<filter id="OffsetBGY" filterUnits="userSpaceOnUse" |
| 65 |
x="0" y="0" width="440" height="260" > |
| 66 |
<feOffset in="BackgroundImage" dx="0" dy="140" /> |
| 67 |
</filter> |
| 68 |
</defs> |
| 69 |
|
| 70 |
<g transform="translate(0 40)" class="legend"> |
| 71 |
|
| 72 |
<!-- ============================================== --> |
| 73 |
<!-- Enable Background_1_* --> |
| 74 |
<!-- ============================================== --> |
| 75 |
<g transform="translate(0 20)" class="row1" |
| 76 |
style="enable-background:new 19 30 403 60"> |
| 77 |
<g transform="translate(20 0)" |
| 78 |
style="enable-background:new;" > |
| 79 |
<rect x="0" y="0" width="60" height="120" style="fill:Beige"/> |
| 80 |
|
| 81 |
<use xlink:href="#uglyBlobs" /> |
| 82 |
<rect x="0" y="0" width="1" height="1" |
| 83 |
style="filter:url(#OffsetBGX)" /> |
| 84 |
|
| 85 |
<rect x="0" y="0" width="60" height="120" |
| 86 |
style="fill:none; stroke:black; stroke-width:2"/> |
| 87 |
<rect x="60" y="0" width="60" height="120" |
| 88 |
style="fill:none; stroke:black; stroke-width:2"/> |
| 89 |
<g transform="translate(60, 135)"> |
| 90 |
<text x="0" y="0" style="text-anchor:middle"> |
| 91 |
Left Copied to right |
| 92 |
</text> |
| 93 |
</g> |
| 94 |
</g> |
| 95 |
|
| 96 |
<g transform="translate(160 0)"> |
| 97 |
<line x1="-5" y1="20" x2="125" y2="45" |
| 98 |
style="stroke-width:5; stroke:#AA3333"/> |
| 99 |
|
| 100 |
<line x1="-5" y1="100" x2="125" y2="75" |
| 101 |
style="stroke-width:5; stroke:#AA3333"/> |
| 102 |
|
| 103 |
<g style="enable-background:new"> |
| 104 |
<rect x="0" y="0" width="60" height="120" |
| 105 |
style="fill:Beige"/> |
| 106 |
<g style="opacity: 0.75"> |
| 107 |
<rect x="5" y="5" width="50" height="50" |
| 108 |
style="fill:deepPink"/> |
| 109 |
<use xlink:href="#uglyBlobs" style="opacity:0.75"/> |
| 110 |
<rect x="0" y="0" width="120" height="120" |
| 111 |
style="filter:url(#OffsetBGX)" /> |
| 112 |
</g> |
| 113 |
</g> |
| 114 |
|
| 115 |
<rect x="0" y="0" width="60" height="120" |
| 116 |
style="fill:none; stroke:black; stroke-width:2"/> |
| 117 |
<rect x="60" y="0" width="60" height="120" |
| 118 |
style="fill:none; stroke:black; stroke-width:2"/> |
| 119 |
<g transform="translate(60, 135)"> |
| 120 |
<text x="0" y="0" style="text-anchor:middle"> |
| 121 |
Right is transparent |
| 122 |
</text> |
| 123 |
</g> |
| 124 |
</g> |
| 125 |
|
| 126 |
<g transform="translate(300 0)"> |
| 127 |
<line x1="-5" y1="20" x2="125" y2="45" |
| 128 |
style="stroke-width:5; stroke:#AA3333"/> |
| 129 |
|
| 130 |
<line x1="-5" y1="100" x2="125" y2="75" |
| 131 |
style="stroke-width:5; stroke:#AA3333"/> |
| 132 |
|
| 133 |
<rect x="0" y="0" width="60" height="120" style="fill:Beige"/> |
| 134 |
<g style="enable-background:new"> |
| 135 |
<ellipse cx="25" cy="45" rx="20" ry="30" |
| 136 |
style="fill:#AA00CC" /> |
| 137 |
|
| 138 |
<g style="opacity: 0.75"> |
| 139 |
<use xlink:href="#uglyBlobs"/> |
| 140 |
<rect x="0" y="0" width="120" height="120" |
| 141 |
style="filter:url(#OffsetBGX)" /> |
| 142 |
</g> |
| 143 |
</g> |
| 144 |
|
| 145 |
<rect x="0" y="0" width="60" height="120" |
| 146 |
style="fill:none; stroke:black; stroke-width:2"/> |
| 147 |
<rect x="60" y="0" width="60" height="120" |
| 148 |
style="fill:none; stroke:black; stroke-width:2"/> |
| 149 |
<g transform="translate(60, 135)"> |
| 150 |
<text x="0" y="0" style="text-anchor:middle"> |
| 151 |
Blobs opaquely merged w/ oval |
| 152 |
</text> |
| 153 |
</g> |
| 154 |
</g> |
| 155 |
|
| 156 |
<!-- ============================================== --> |
| 157 |
<!-- BGEnable _2_* --> |
| 158 |
<!-- ============================================== --> |
| 159 |
<rect x="0" y="0" width="10" height="10" |
| 160 |
style="filter:url(#OffsetBGY)" /> |
| 161 |
|
| 162 |
<g transform="translate(220, 270)"> |
| 163 |
<text x="0" y="0" style="text-anchor:middle"> |
| 164 |
Copy of middle of first row (by setting enable-background bounds) |
| 165 |
</text> |
| 166 |
</g> |
| 167 |
</g> |
| 168 |
</g> |
| 169 |
</g> |
| 170 |
</g> |
| 171 |
|
| 172 |
<!-- ============================================================= --> |
| 173 |
<!-- Batik sample mark --> |
| 174 |
<!-- ============================================================= --> |
| 175 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 176 |
|
| 177 |
</svg> |