| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN" |
| "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"> |
| |
| <!-- ========================================================================= --> |
| <!-- Copyright (C) The Apache Software Foundation. All rights reserved. --> |
| <!-- --> |
| <!-- This software is published under the terms of the Apache Software License --> |
| <!-- version 1.1, a copy of which has been included with this distribution in --> |
| <!-- the LICENSE file. --> |
| <!-- ========================================================================= --> |
| |
| <!-- ========================================================================= --> |
| <!-- Tests the text decoration property --> |
| <!-- --> |
| <!-- @author bella.robinson@cmis.csiro.au --> |
| <!-- @version $Id$ --> |
| <!-- ========================================================================= --> |
| <?xml-stylesheet type="text/css" href="test.css" ?> |
| |
| <svg id="body" width="450" height="500" viewBox="0 0 450 500"> |
| <title>Text decoration test</title> |
| |
| <style type="text/css"><![CDATA[ |
| |
| ]]></style> |
| |
| <defs> |
| <pattern id="svgPattern" viewBox="0 0 10 10" x="0" y="0" width="5" height="5" |
| patternContentUnits="userSpaceOnUse" patternUnits="userSpaceOnUse"> |
| <g fill="red" stroke="none"> |
| <rect x="0" y="0" width="5" height="5" /> |
| <rect x="5" y="5" width="5" height="5" /> |
| </g> |
| <g fill="black" stroke="none"> |
| <rect x="0" y="5" width="5" height="5" /> |
| <rect x="5" y="0" width="5" height="5" /> |
| </g> |
| |
| </pattern> |
| </defs> |
| |
| |
| <g id="content"> |
| |
| <text class="title" x="50%" y="40">Text decoration test</text> |
| |
| <g font-size="20"> |
| |
| <g fill="#6666FF"> |
| <text x="50" y="100" text-decoration="underline">Underline</text> |
| <text x="170" y="100" text-decoration="overline">Overline</text> |
| <text x="270" y="100" text-decoration="line-through">Line-through</text> |
| </g> |
| |
| <g fill="none" stroke="#33CC33" stroke-width="0.25"> |
| <text x="50" y="140" text-decoration="underline">Underline</text> |
| <text x="170" y="140" text-decoration="overline">Overline</text> |
| <text x="270" y="140" text-decoration="line-through">Line-through</text> |
| </g> |
| |
| <g fill="url(#svgPattern)"> |
| <text x="50" y="180" text-decoration="underline">Underline</text> |
| <text x="170" y="180" text-decoration="overline">Overline</text> |
| <text x="270" y="180" text-decoration="line-through">Line-through</text> |
| </g> |
| |
| |
| <text x="50" y="220" fill="#6666FF" text-decoration="underline overline">Underline and overline</text> |
| <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> |
| <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> |
| <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> |
| <text x="50" y="380" text-decoration="line-through">Tspan <tspan fill="url(#svgPattern)" text-decoration="line-through">with own</tspan> decoration</text> |
| <text x="50" y="420" fill="#6666FF" text-decoration="overline">Tspan <tspan fill="#33CC33" text-decoration="none">with no</tspan> decoration</text> |
| <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> |
| |
| </g> |
| |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../batikLogo.svg#Batik_Tag_Box" /> |
| |
| </svg> |
| |