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/lengthAdjust-vertical.svg
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<title>lengthAdjust="spacingAndGlyphs" should work on vertical text</title>
<h:link rel="match" href="green-100x100.svg"/>
<h:link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
</metadata>
<style>
text {
font: 25px/1 Ahem;
}
</style>
<rect fill="green" width="100" height="100"/>
<text x="50" y="10" fill="red" textLength="80" lengthAdjust="spacingAndGlyphs" font-family="Ahem" style="writing-mode: vertical-lr">
XX
</text>
<rect fill="green" x="37" y="9" width="26" height="82"/>
</svg>