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-inline-size-201.svg - WPT Dashboard Interop Dashboard
<?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 — 201</title>
<html:link rel="author"
title="Tavmjong Bah"
href="mailto:tavmjong@free.fr"/>
<html:link rel="help"
<html:link rel="match" href="text-inline-size-201-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>
<!-- Lorem ipsum dolor sit amet, consectetur adipisicing elit, -->
<g id="test-body-content" style="font-size:16px;line-spacing:1.25;writing-mode:tb-rl">
<g transform="translate(0,0)">
<text x="140" y="100" style="inline-size:200px">漢字Lorem ipsum!漢字</text>
</g>
<g transform="translate(80,0)" style="text-orientation:sideways">
<text x="140" y="100" style="inline-size:200px">漢字Lorem ipsum!漢字</text>
</g>
<g transform="translate(160,0)" style="text-orientation:sideways">
<text x="140" y="100" style="inline-size:200px">漢字!لكن لا بد أن漢字</text>
</g>
<g transform="translate(240,0)" style="direction:rtl;text-orientation:sideways">
<text x="140" y="100" style="inline-size:200px">漢字!لكن لا بد أن漢字</text>
</g>
</g>
</svg>