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/text-bidi-controls-anchors-2.svg - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="utf-8"?>
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml">
<title>Text anchors and bidi control characters</title>
<html:link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"/>
<html:link rel="match" href="text-bidi-controls-anchors-2-ref.svg"/>
<g direction="rtl" transform="translate(200,20)" font-family="Arial, sans-serif" font-size="12px">
<line x1="0" y1="0" x2="0" y2="300" stroke="black" stroke-width="0.5"/>
<g transform="translate(0,20)">
<text style="fill: red" text-anchor="start">Start Anchor</text>
<text y="10" style="fill: green" text-anchor="middle">Middle Anchor</text>
<text y="20" style="fill: blue" text-anchor="end">End Anchor</text>
</g>
<g transform="translate(0,60)">
<text style="fill: red" text-anchor="start">‫Start Anchor‬</text>
<text y="10" style="fill: green" text-anchor="middle">‫Middle Anchor‬</text>
<text y="20" style="fill: blue" text-anchor="end">‫End Anchor‬</text>
</g>
<g transform="translate(0,100)">
<text style="fill: red" text-anchor="start">‫Start‬ Anchor</text>
<text y="10" style="fill: green" text-anchor="middle">‫Middle‬ Anchor</text>
<text y="20" style="fill: blue" text-anchor="end">‫End‬ Anchor</text>
</g>
<g transform="translate(0,140)">
<text style="fill: red" text-anchor="start">Start ‫Anchor‬</text>
<text y="10" style="fill: green" text-anchor="middle">Middle ‫Anchor‬</text>
<text y="20" style="fill: blue" text-anchor="end">End ‫Anchor‬</text>
</g>
<g transform="translate(0,180)">
<text style="fill: red" text-anchor="start">‮Start Anchor‬</text>
<text y="10" style="fill: green" text-anchor="middle">‮Middle Anchor‬</text>
<text y="20" style="fill: blue" text-anchor="end">‮End Anchor‬</text>
</g>
<g transform="translate(0,220)">
<text style="fill: red" text-anchor="start">‮Start‬ Anchor</text>
<text y="10" style="fill: green" text-anchor="middle">‮Middle‬ Anchor</text>
<text y="20" style="fill: blue" text-anchor="end">‮End‬ Anchor</text>
</g>
<g transform="translate(0,260)">
<text style="fill: red" text-anchor="start">Start ‮Anchor‬</text>
<text y="10" style="fill: green" text-anchor="middle">Middle ‮Anchor‬</text>
<text y="20" style="fill: blue" text-anchor="end">End ‮Anchor‬</text>
</g>
</g>
</svg>