Source code

Revision control

Copy as Markdown

Other Tools

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/text/reftests/text-shape-inside-002-ref.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 in Shape — 002</title>
<html:link rel="author"
title="Tavmjong Bah"
href="mailto:tavmjong@free.fr"/>
<html:link rel="reviewer"
title="NAME_OF_REVIEWER"
href="mailto:EMAIL OR http://CONTACT_PAGE" />
<!-- YYYY-MM-DD -->
<html:link rel="help"
<metadata class="flags">TOKENS</metadata>
<desc class="assert">TEST ASSERTION</desc>
</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>
<defs>
<rect id="TestRect" x="90" y="100" width="60" height="200"/>
</defs>
<g id="test-body-reference" style="font-size:16px">
<g transform="translate(0,0)">
<use xlink:href="#TestRect" style="fill:none;stroke:lightblue"/>
<text transform="translate(250,10) rotate(90)">
<tspan x="90" y="114.8">Lorem ipsum dolor sit amet,</tspan>
<tspan x="90" y="134.8">consectetur adipisicing elit,</tspan>
</text>
</g>
<g transform="translate(80,0)">
<use xlink:href="#TestRect" style="fill:none;stroke:lightblue"/>
<text transform="translate(250,-40) rotate(90)" style="text-anchor:middle">
<tspan x="240" y="114.8">Lorem ipsum dolor sit amet,</tspan>
<tspan x="240" y="134.8">consectetur adipisicing elit,</tspan>
</text>
</g>
<g transform="translate(160,0)">
<use xlink:href="#TestRect" style="fill:none;stroke:lightblue"/>
<text transform="translate(250,-90) rotate(90)" style="text-anchor:end">
<tspan x="390" y="114.8">Lorem ipsum dolor sit amet,</tspan>
<tspan x="390" y="134.8">consectetur adipisicing elit,</tspan>
</text>
</g>
<g transform="translate(240,0)">
<use xlink:href="#TestRect" style="fill:none;stroke:lightblue"/>
<text transform="translate(250,-150) rotate(90)">
<tspan x="250" y="114.8">Lorem</tspan>
<tspan x="300.3">ipsum</tspan>
<tspan x="348.2">dolor</tspan>
<tspan x="389">sit</tspan>
<tspan x="410.9">amet,</tspan>
<tspan x="250" y="134.8">consectetur adipisicing elit,</tspan>
</text>
</g>
</g>
</svg>