blob: 5ad0d2a21744f20a4f22adae9b7763052d5324a6 [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.
-->
<!-- ========================================================================= -->
<!-- Opacity test. Apply 'stroke-opacity' 'fill-opacity' and 'opacity' -->
<!-- -->
<!-- @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: stroke-opacity, fill-opacity, opacity </title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="50" class="title">
Opacity : stroke-opacity, fill-opacity and opacity
</text>
<g class="legend">
<defs>
<circle id="elem" cx="0" cy="0" r="35"
style="fill: yellow; stroke: black; stroke-width: 8;"/>
<rect id="bg" x="-45" y="-45" width="90" height="90"
style="fill:orange"/>
</defs>
<g transform="translate(75 130)">
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:1"/>
<text x="0" y="60">opacity:1</text>
<text x="0" y="70">stroke-opacity:1</text>
<text x="0" y="80">fill-opacity:1</text>
</g>
<g transform="translate(175 130)">
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:.5"/>
<text x="0" y="60">opacity:1</text>
<text x="0" y="70">stroke-opacity:1</text>
<text x="0" y="80">fill-opacity:0.5</text>
</g>
<g transform="translate(275 130)">
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:.5; fill-opacity:1"/>
<text x="0" y="60">opacity:1</text>
<text x="0" y="70">stroke-opacity:0.5</text>
<text x="0" y="80">fill-opacity:1</text>
</g>
<g transform="translate(375 130)">
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:.5; fill-opacity:.5"/>
<text x="0" y="60">opacity:1</text>
<text x="0" y="70">stroke-opacity:0.5</text>
<text x="0" y="80">fill-opacity:0.5</text>
</g>
<g transform="translate(75 330)" >
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:1; opacity:.5;"/>
<text x="0" y="60">opacity:0.5</text>
<text x="0" y="70">stroke-opacity:1</text>
<text x="0" y="80">fill-opacity:1</text>
</g>
<g transform="translate(175 330)">
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:1; fill-opacity:.5; opacity:.5;"/>
<text x="0" y="60">opacity:0.5</text>
<text x="0" y="70">stroke-opacity:1</text>
<text x="0" y="80">fill-opacity:0.5</text>
</g>
<g transform="translate(275 330)">
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:.5; fill-opacity:1; opacity:.5;"/>
<text x="0" y="60">opacity:0.5</text>
<text x="0" y="70">stroke-opacity:0.5</text>
<text x="0" y="80">fill-opacity:1</text>
</g>
<g transform="translate(375 330)">
<use xlink:href="#bg"/>
<use xlink:href="#elem"
style="stroke-opacity:.5; fill-opacity:.5; opacity:.5;"/>
<text x="0" y="60">opacity:0.5</text>
<text x="0" y="70">stroke-opacity:0.5</text>
<text x="0" y="80">fill-opacity:0.5</text>
</g>
</g>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
</svg>