Skip to content

Truly independent web browser

1.1 KB
Raw Blame
<!DOCTYPE html>
<html>
<title>SVG ellipse with auto rx/ry referenced from &lt;textPath&gt; resolves per SVG 2</title>
<link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/shapes.html#EllipseElement">
<link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/text.html#TextPathElement">
<link rel="match" href="../../../../../expected/wpt-import/svg/shapes/reftests/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>