| 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 |
<!-- Tests the text decoration property --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
|
| 31 |
<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"> |
| 32 |
|
| 33 |
<title>Text decoration test</title> |
| 34 |
|
| 35 |
<defs> |
| 36 |
<pattern id="svgPattern" viewBox="0 0 10 10" x="0" y="0" width="5" height="5" |
| 37 |
patternContentUnits="userSpaceOnUse" patternUnits="userSpaceOnUse"> |
| 38 |
<g fill="red" stroke="none"> |
| 39 |
<rect x="0" y="0" width="5" height="5" /> |
| 40 |
<rect x="5" y="5" width="5" height="5" /> |
| 41 |
</g> |
| 42 |
<g fill="black" stroke="none"> |
| 43 |
<rect x="0" y="5" width="5" height="5" /> |
| 44 |
<rect x="5" y="0" width="5" height="5" /> |
| 45 |
</g> |
| 46 |
|
| 47 |
</pattern> |
| 48 |
</defs> |
| 49 |
|
| 50 |
|
| 51 |
<g id="content"> |
| 52 |
|
| 53 |
<text class="title" x="50%" y="40">Text decoration test</text> |
| 54 |
|
| 55 |
<g font-size="20"> |
| 56 |
|
| 57 |
<g fill="#6666FF"> |
| 58 |
<text x="50" y="100" text-decoration="underline">Underline</text> |
| 59 |
<text x="170" y="100" text-decoration="overline">Overline</text> |
| 60 |
<text x="270" y="100" text-decoration="line-through">Line-through</text> |
| 61 |
</g> |
| 62 |
|
| 63 |
<g fill="none" stroke="#33CC33" stroke-width="0.25"> |
| 64 |
<text x="50" y="140" text-decoration="underline">Underline</text> |
| 65 |
<text x="170" y="140" text-decoration="overline">Overline</text> |
| 66 |
<text x="270" y="140" text-decoration="line-through">Line-through</text> |
| 67 |
</g> |
| 68 |
|
| 69 |
<g fill="url(#svgPattern)"> |
| 70 |
<text x="50" y="180" text-decoration="underline">Underline</text> |
| 71 |
<text x="170" y="180" text-decoration="overline">Overline</text> |
| 72 |
<text x="270" y="180" text-decoration="line-through">Line-through</text> |
| 73 |
</g> |
| 74 |
|
| 75 |
|
| 76 |
<text x="50" y="220" fill="#6666FF" text-decoration="underline overline">Underline and overline</text> |
| 77 |
<text x="50" y="260" fill="none" stroke="#33CC33" stroke-width="0.25" text-decoration="line-through underline overline">Underline, overline and line-through</text> |
| 78 |
<text x="50" y="300" fill="url(#svgPattern)" text-decoration="underline">Decorations <tspan fill="black" dy="-10">with</tspan><tspan dy="10"> tspan</tspan></text> |
| 79 |
<text x="50" y="340" fill="#6666FF" fill-opacity="0.5" text-decoration="line-through">Transparent text <tspan fill="#33CC33" fill-opacity="1">with</tspan> tspan</text> |
| 80 |
<text x="50" y="380" text-decoration="line-through">Tspan <tspan fill="url(#svgPattern)" text-decoration="line-through">with own</tspan> decoration</text> |
| 81 |
<text x="50" y="420" fill="#6666FF" text-decoration="overline">Tspan <tspan fill="#33CC33" text-decoration="none">with no</tspan> decoration</text> |
| 82 |
<text x="50" y="460" fill="#6666FF" text-decoration="line-through">Nested <tspan fill="url(#svgPattern)" text-decoration="underline">tspan <tspan fill="#33CC33" text-decoration="overline">decor</tspan>ations</tspan></text> |
| 83 |
|
| 84 |
</g> |
| 85 |
|
| 86 |
</g> |
| 87 |
|
| 88 |
<!-- ============================================================= --> |
| 89 |
<!-- Batik sample mark --> |
| 90 |
<!-- ============================================================= --> |
| 91 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 92 |
|
| 93 |
</svg> |
| 94 |
|