Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/text/reftests/opacity.svg
<metadata>
<h:title>Opacity on tspan, textPath, and a elements</h:title>
<h:link rel="help" href="https://svgwg.org/svg2-draft/text.html"/>
<h:link rel="match" href="opacity-ref.svg"/>
<h:link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
</metadata>
<style>
text {
font-size: 50px;
}
</style>
<defs>
<path id="path" d="M100, 120 300, 120"/>
</defs>
<text x="100" y="60">
<tspan style="opacity: 0.5">tspan</tspan>
</text>
<text>
<textPath href="#path" style="opacity: 0.5">textPath</textPath>
</text>
<text x="100" y="180">
<a href="https://www.w3.org" style="opacity: 0.5"><tspan>link</tspan></a>
</text>
<text x="100" y="240">
<a href="https://www.w3.org"><tspan style="opacity: 0.5">another link</tspan></a>
</text>
<text x="100" y="300" opacity="0.5" font-family="Ahem">
<tspan style="opacity: 0.5">XXXX</tspan>
</text>
</svg>