Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/text/reftests/textpath-side-003.svg - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="utf-8"?>
<svg width="400" height="200" viewBox="0 0 400 200"
<metadata>
<html:link rel="author" title="Virali Purbey" href="mailto:viralipurbey@microsoft.com"/>
<html:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/text.html#TextPathElementSideAttribute"/>
<html:link rel="match" href="textpath-side-003-ref.svg"/>
<html:meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-100"/>
</metadata>
<html:link rel="stylesheet" type="text/css" href="/fonts/ahem.css"/>
<style>
text { font-family: Ahem; font-size: 16px; }
</style>
<defs>
<path id="curve" d="M 50,100 Q 200,30 350,100"/>
</defs>
<!-- side="right" places text on the opposite side of the path -->
<text fill="black">
<textPath href="#curve" side="right">ABCDE</textPath>
</text>
</svg>