<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Directional overrides</title>
<style type="text/css">
table {border-spacing:0; border-collapse:collapse; text-align:center;}
td {border: 1px solid green; padding:4px;}
</style>
</head>
<body>
<p>All rows should be identical to the reference row.</p>
<table>
<tr>
<td style="text-align:right">Reference</td>
<td>abcdefאבגghijkl
זחטיכלabcאבגדהו</td>
<td style="direction:rtl;">ghijklאבגabcdef
אבגדהוabcזחטיכל</td>
</tr>
<tr>
<td style="text-align:right">CSS, siblings</td>
<td>abc<span style="direction:rtl; unicode-bidi:bidi-override;">ihgאבגfed</span>jkl אבג<span style="direction:ltr; unicode-bidi:bidi-override;">טחזabcוהד</span>יכל</td>
<td style="direction:rtl;">abc<span style="direction:rtl; unicode-bidi:bidi-override;">ihgאבגfed</span>jkl אבג<span style="direction:ltr; unicode-bidi:bidi-override;">טחזabcוהד</span>יכל</td>
</tr>
<tr>
<td style="text-align:right">CSS, children</td>
<td><span>abc<span style="direction:rtl; unicode-bidi:bidi-override;">ihgאבגfed</span>jkl</span>
<span>אבג<span style="direction:ltr; unicode-bidi:bidi-override;">טחזabcוהד</span>יכל</span></td>
<td style="direction:rtl;"><span>abc<span style="direction:rtl; unicode-bidi:bidi-override;">ihgאבגfed</span>jkl</span>
<span>אבג<span style="direction:ltr; unicode-bidi:bidi-override;">טחזabcוהד</span>יכל</span></td>
</tr>
<tr>
<td style="text-align:right">Unicode</td>
<td>abc‮ihgאבגfed‬jkl
אבג‭טחזabcוהד‬יכל</td>
<td style="direction:rtl;">abc‮ihgאבגfed‬jkl
אבג‭טחזabcוהד‬יכל</td>
</tr>
</table>
<p>The CSS column should be identical to the reference column.</p>
<table>
<tr>
<td>Reference</td>
<td>CSS</td>
</tr>
<tr>
<td>
<p>abcdefאבגghijkl</p>
<p>זחטיכלabcאבגדהו</p>
</td>
<td>
<p style="direction:rtl; unicode-bidi:bidi-override;">lkjihgאבגfedcba</p>
<p style="direction:ltr; unicode-bidi:bidi-override;">לכיטחזabcוהדגבא</p>
</td>
</tr>
</table>
</body>
</html>