wpt / svg / text / reftests / textpath-side-003.svg

Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi

/svg/text/reftests/textpath-side-003.svg

<?xml version="1.0" encoding="utf-8"?>
<svg width="400" height="200" viewBox="0 0 400 200"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:html="http://www.w3.org/1999/xhtml">
  <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="help" href="https://github.com/w3c/svgwg/issues/1068"/>
    <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>