Status: PASS | Duration: 4ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi
/svg/text/reftests/textpath-side-004.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-004-ref.svg"/> </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,80 Q 200,10 350,80"/> </defs> <!-- Invalid side values should be treated as the default ("left") --> <g transform="translate(0,0)"> <text fill="blue"> <textPath href="#curve" side="invalid">ABCDE</textPath> </text> </g> <g transform="translate(0,80)"> <text fill="green"> <textPath href="#curve" side="">ABCDE</textPath> </text> </g> </svg>