blob: 7cad5c76c8cec8bb9de373358bb2681a0059c451 [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">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<!-- ========================================================================= -->
<!-- Opacity2 test. Apply 'opacity' on group -->
<!-- -->
<!-- @author Thierry.Kormann@sophia.inria.fr -->
<!-- @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>Opacity: opacity on group</title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="50" class="title">
Opacity2 : opacity on group
</text>
<g class="legend">
<defs>
<g id="elem">
<circle cx="-35" cy="0" r="35"
style="fill: #0000FF; stroke: #0000AA; stroke-width: 8;"/>
<circle cx="0" cy="0" r="35"
style="fill: #FF0000; stroke: #AA0000; stroke-width: 8;"/>
</g>
</defs>
<g transform="translate(140 120)">
<rect x="-80" y="-45" width="125" height="90"
style="fill-opacity:1; stroke-opacity:1; opacity:1; fill:#cecece"/>
<g style="opacity:1">
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:1"/>
</g>
<text x="-20" y="60">opacity:1</text>
<text x="-20" y="70">stroke-opacity:1 fill-opacity:1</text>
</g>
<g transform="translate(340 120)">
<rect x="-80" y="-45" width="125" height="90"
style="fill-opacity:1; stroke-opacity:1; opacity:1; fill:#cecece"/>
<g style="opacity:.5">
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:1"/>
</g>
<text x="-20" y="60">opacity:0.5</text>
<text x="-20" y="70">stroke-opacity:1 fill-opacity:1</text>
</g>
<g transform="translate(140 250)">
<rect x="-80" y="-45" width="125" height="90"
style="fill-opacity:1; stroke-opacity:1; opacity:1; fill:#cecece"/>
<g style="opacity:1">
<use xlink:href="#elem"
style="stroke-opacity:.5; fill-opacity:1"/>
</g>
<text x="-20" y="60">opacity:1</text>
<text x="-20" y="70">stroke-opacity:0.5 fill-opacity:1</text>
</g>
<g transform="translate(340 250)">
<rect x="-80" y="-45" width="125" height="90"
style="fill-opacity:1; stroke-opacity:1; opacity:1; fill:#cecece"/>
<g style="opacity:.5">
<use xlink:href="#elem"
style="stroke-opacity:.5; fill-opacity:1"/>
</g>
<text x="-20" y="60">opacity:0.5</text>
<text x="-20" y="70">stroke-opacity:0.5 fill-opacity:1</text>
</g>
<g transform="translate(140 380)">
<rect x="-80" y="-45" width="125" height="90"
style="fill-opacity:1; stroke-opacity:1; opacity:1; fill:#cecece"/>
<g style="opacity:1">
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:.5"/>
</g>
<text x="-20" y="60">opacity:1</text>
<text x="-20" y="70">stroke-opacity:1 fill-opacity:0.5</text>
</g>
<g transform="translate(340 380)">
<rect x="-80" y="-45" width="125" height="90"
style="fill-opacity:1; stroke-opacity:1; opacity:1; fill:#cecece"/>
<g style="opacity:.5">
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:.5"/>
</g>
<text x="-20" y="60">opacity:0.5</text>
<text x="-20" y="70">stroke-opacity:1 fill-opacity:0.5</text>
</g>
</g>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
</svg>