Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/text/reftests/text-text-anchor-002.svg
<?xml version="1.0" encoding="utf-8"?>
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
<g id="testmeta">
<title>Text: Text Anchor — 002</title>
<html:link rel="author"
title="Tavmjong Bah"
href="mailto:tavmjong@free.fr"/>
<html:link rel="help"
<html:link rel="match" href="text-text-anchor-002-ref.svg" />
</g>
<style id="test-font" type="text/css">
/* Standard Font (if needed). */
@font-face {
font-family: FreeSans;
src: url("fonts/FreeSans.woff") format("woff"),
local("FreeSans");
}
text { font-family: FreeSans, sans-serif }
</style>
<style id="test-style" type="text/css">
/* Style that is being tested (if needed). */
text { font-family: FreeSans, sans-serif }
</style>
<g id="test-body-reference" style="font-size:16px;fill:red">
<g transform="translate(0,0)">
<circle cx="140" cy="100" r="2" style="fill:red"/>
<text transform="translate(250,10) rotate(90)">
<tspan x="90" y="114.8">Lorem ipsum dolor sit amet,</tspan>
</text>
</g>
<g transform="translate(80,0)">
<circle cx="140" cy="200" r="2" style="fill:red"/>
<text transform="translate(250,-40) rotate(90)" style="text-anchor:middle">
<tspan x="240" y="114.8">Lorem ipsum dolor sit amet,</tspan>
</text>
</g>
<g transform="translate(160,0)">
<circle cx="140" cy="300" r="2" style="fill:red"/>
<text transform="translate(250,-90) rotate(90)" style="text-anchor:end">
<tspan x="390" y="114.8">Lorem ipsum dolor sit amet,</tspan>
</text>
</g>
</g>
<g id="test-body-content" style="font-size:16px;writing-mode:tb-rl">
<g transform="translate(0,0)">
<text x="140" y="100" style="text-anchor:start">Lorem ipsum dolor sit amet,</text>
</g>
<g transform="translate(80,0)">
<text x="140" y="200" style="text-anchor:middle">Lorem ipsum dolor sit amet,</text>
</g>
<g transform="translate(160,0)">
<text x="140" y="300" style="text-anchor:end">Lorem ipsum dolor sit amet,</text>
</g>
</g>
</svg>