Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<title>SVG ellipse with auto rx/ry referenced from &lt;textPath&gt; resolves per SVG 2</title>
<link rel="match" href="ellipse-auto-rx-textpath-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="assert" content="An ellipse with auto rx (or auto ry) referenced as the path geometry of a <textPath> must lay glyphs out identically to an ellipse with the resolved explicit value, per SVG 2 ยง10.4.">
<style>
text { font-family: Ahem; font-size: 20px; fill: black; }
</style>
<svg width="320" height="200">
<defs>
<ellipse id="auto-rx" cx="80" cy="100" rx="auto" ry="60"/>
<ellipse id="auto-ry" cx="240" cy="100" rx="60" ry="auto"/>
</defs>
<text><textPath href="#auto-rx">XXXXXXXX</textPath></text>
<text><textPath href="#auto-ry">XXXXXXXX</textPath></text>
</svg>
</html>