blob: 8e597d22263f627aaf474dba42edda1e4198f89c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML><HEAD>
<!--
Based on http://dbaron.org/css/test/bidi2_html by Dave Baron, dbaron@dbaron.org
Copied with permission on 2005-09-10
Modified with permission (rearranged to fit in 800x600 and changed to make more
testcases have the same expected layout).
-->
<TITLE>Bidirectional Text Test 2 - HTML</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<LINK REL="copyright" HREF="/~dbaron/legal.html">
<STYLE TYPE="text/css">
@import url(resources/Mac-compatible-font-fallback.css);
p { text-align: left; }
table.pair { border-spacing: 0; margin-bottom: 0; }
table.pair td { padding: 0; }
p.pair { margin: 0; }
.rtl { direction: rtl; }
.ltr { direction: ltr; }
.rle { direction: rtl; unicode-bidi: embed; }
.lre { direction: ltr; unicode-bidi: embed; }
.rlo { direction: rtl; unicode-bidi: bidi-override; }
.lro { direction: ltr; unicode-bidi: bidi-override; }
.embed { unicode-bidi: embed; }
.override { unicode-bidi: bidi-override; }
div.box { border:1px green solid; display:inline-block; padding:3px; margin:3px; vertical-align:middle; }
</STYLE>
</HEAD>
<BODY>
<H1>Bidirectional Text Test 2 - HTML</H1>
<p>This test is based on <a
href="http://www.w3.org/TR/REC-CSS2/visuren.html#direction">CSS2 section
9.10</a> and <a href="http://www.unicode.org/unicode/uni2book/ch03.pdf">Chapter
3</a> of the <a href="http://www.unicode.org/unicode/uni2book/u2.html">Unicode
Standard</a>.</p>
<PRE>
</PRE>
<p>In each box, all the lines should be the same.</p>
<div class="box">
<p class="pair">ABCDEFGHI</p>
<p class="rtl pair">ABCDEFGHI</p>
<p class="rtl pair">ABC<span>DEF</span>GHI</p>
<p class="rlo pair">IHGFEDCBA</p>
<p class="rlo pair">IHG<span>FED</span>CBA</p>
<p class="rlo pair">IHG<span dir="rtl">DEF</span>CBA</p>
<p class="rlo pair">IHG<bdo dir="rtl">FED</bdo>CBA</p>
<p class="rlo pair">IHG<span style="unicode-bidi: inherit">FED</span>CBA</p>
<p class="rlo pair">IHG<bdo dir="ltr">DEF</bdo>CBA</p>
</div>
<div class="box">
<table class="pair"><tr><td>&#x05D2;</td><td>&#x05D1;</td><td>&#x05D0;</td></tr></table>
<p class="pair">&#x05D0;&#x05D1;&#x05D2;</p>
<p class="pair embed">&#x05D0;&#x05D1;&#x05D2;</p>
<p class="pair override">&#x05D2;&#x05D1;&#x05D0;</p>
</div>
<div class="box">
<table class="pair"><tr><td>&#x05D2;</td><td>&#x05D1;</td><td>&#x05D0;</td><td>&nbsp;</td><td>A</td><td>B</td><td>C</td><td>&nbsp;</td><td>&#x05D5;</td><td>&#x05D4;</td><td>&#x05D3;</td></tr></table>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; ABC &#x05D3;&#x05D4;&#x05D5;</p>
<p class="pair rtl">&#x05D3;&#x05D4;&#x05D5; ABC &#x05D0;&#x05D1;&#x05D2;</p>
</div>
<div class="box">
<table class="pair"><tr><td>&#x05D2;</td><td>&#x05D1;</td><td>&#x05D0;</td><td>&nbsp;</td><td>A</td><td>B</td><td>C</td><td>&nbsp;</td><td>&#x05D5;</td><td>&#x05D4;</td><td>&#x05D3;</td><td>&nbsp;</td><td>D</td><td>E</td><td>F</td><td>&nbsp;</td><td>&#x05D8;</td><td>&#x05D7;</td><td>&#x05D6;</td></tr></table>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; ABC &#x05D3;&#x05D4;&#x05D5; DEF &#x05D6;&#x05D7;&#x05D8;</p>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; <span>ABC &#x05D3;&#x05D4;&#x05D5;</span> DEF &#x05D6;&#x05D7;&#x05D8;</p>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; <span dir="ltr" class="embed">ABC &#x05D3;&#x05D4;&#x05D5; DEF</span> &#x05D6;&#x05D7;&#x05D8;</p>
<p class="pair">&#x05D6;&#x05D7;&#x05D8; <span dir="rtl">DEF &#x05D3;&#x05D4;&#x05D5; ABC</span> &#x05D0;&#x05D1;&#x05D2;</p>
<p class="pair">&#x05D3;&#x05D4;&#x05D5; <span dir="rtl" class="embed">ABC &#x05D0;&#x05D1;&#x05D2;</span> DEF &#x05D6;&#x05D7;&#x05D8;</p>
<p class="pair">&#x05D3;&#x05D4;&#x05D5; <bdo dir="rtl">CBA &#x05D0;&#x05D1;&#x05D2;</bdo> DEF &#x05D6;&#x05D7;&#x05D8;</p>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; <bdo dir="ltr">ABC &#x05D5;&#x05D4;&#x05D3;</bdo> DEF &#x05D6;&#x05D7;&#x05D8;</p>
<p class="rtl pair">&#x05D6;&#x05D7;&#x05D8; <bdo dir="ltr">ABC &#x05D5;&#x05D4;&#x05D3;</bdo> DEF &#x05D0;&#x05D1;&#x05D2;</p>
</div>
<div class="box">
<table class="pair"><tr><td>&#x05D2;</td><td>&#x05D1;</td><td>&#x05D0;</td><td>&nbsp;</td><td>A</td><td>B</td><td>C</td><td>&nbsp;</td><td>&#x05D5;</td><td>&#x05D4;</td><td>&#x05D3;</td><td>&nbsp;</td><td>D</td><td>E</td><td>F</td><td>&nbsp;</td><td>G</td><td>H</td><td>I</td><td>&nbsp;</td><td>&#x05D8;</td><td>&#x05D7;</td><td>&#x05D6;</td></tr></table>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; ABC &#x05D3;&#x05D4;&#x05D5; DEF GHI &#x05D6;&#x05D7;&#x05D8;</p>
</div>
<br/>
<div class="box">
<table class="pair"><tr><td>F</td><td>E</td><td>D</td><td>&nbsp;</td><td>&#x05D5;</td><td>&#x05D4;</td><td>&#x05D3;</td><td>&nbsp;</td><td>C</td><td>B</td><td>A</td><td>&nbsp;</td><td>&#x05D2;</td><td>&#x05D1;</td><td>&#x05D0;</td><td>&nbsp;</td><td>G</td><td>H</td><td>I</td><td>&nbsp;</td><td>&#x05D8;</td><td>&#x05D7;</td><td>&#x05D6;</td></tr></table>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; <bdo dir="rtl">ABC &#x05D3;&#x05D4;&#x05D5; DEF</bdo> GHI &#x05D6;&#x05D7;&#x05D8;</p>
</div>
<div class="box">
<table class="pair"><tr><td>&#x05D2;</td><td>&#x05D1;</td><td>&#x05D0;</td><td>&nbsp;</td><td>A</td><td>B</td><td>C</td><td>&nbsp;</td><td>F</td><td>E</td><td>D</td><td>&nbsp;</td><td>&#x05D5;</td><td>&#x05D4;</td><td>&#x05D3;</td><td>&nbsp</td><td>G</td><td>H</td><td>I</td><td>&nbsp;</td><td>&#x05D8;</td><td>&#x05D7;</td><td>&#x05D6;</td></tr></table>
<p class="pair">&#x05D0;&#x05D1;&#x05D2; ABC <bdo dir="rtl">&#x05D3;&#x05D4;&#x05D5; DEF</bdo> GHI &#x05D6;&#x05D7;&#x05D8;</p>
</div>
<hr title="Beginning of Footer">
<!--
<P><A HREF="http://validator.w3.org/check/referer" TITLE="W3C HTML Validator"><img src="../../images/vh40" ALT="Valid HTML 4.0!" height="31" width="88"></A></P>
-->
<P>(Back to
<A HREF="./">CSS Testing Information</A>,
<A HREF="../../">David Baron</A>)
<P><A HREF="/" TITLE="David Baron's Homepage">LDB</A>,
<A rev="made" href="mailto:dbaron@dbaron.org" TITLE="Send e-mail to David Baron">dbaron@dbaron.org</A>, 2001-06-05</P>
<P>Modified and used with the author&rsquo;s permission.</P>
</BODY></HTML>