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/first-letter.svg
<metadata>
<h:title>first-letter should apply to SVG text</h:title>
<h:link rel="match" href="first-letter-ref.svg"/>
<h:link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
</metadata>
<style>
text {
font-family: Ahem;
font-size: 50px;
}
text::first-letter {
fill: green;
}
</style>
<text x="100" y="100">
<tspan>XXXX</tspan>
</text>
</svg>