<html>
<head>
<title>Bidi properties ignored for inline container whose first child is an inline container</title>
<style type="text/css">
.rlo { direction: rtl; unicode-bidi: bidi-override; }
[dir] { unicode-bidi: embed; }
</style>
</head>
<body>
<p>
This is a test for <i>http://bugzilla.opendarwin.org/show_bug.cgi?id=5980 Bidi properties of an inline container whose first child is an inline container are ignored</i>.
</p>
<hr>
<p>
The following lines should read “ABCDEFGHI”:
</p>
<p>
ABC<span class="rlo">FED</span>GHI
</p>
<p>
ABC<span class="rlo"><span>FED</span></span>GHI
</p>
<p>
ABC<span class="rlo">F<span>ED</span></span>GHI
</p>
<p>
ABC<span class="rlo">F<span>E</span>D</span>GHI
</p>
<p>
ABC<span class="rlo"><span>FE</span>D</span>GHI
</p>
<p><span class="rlo">IHGFEDCBA</span>
</p>
<p>
<span class="rlo">IHGFEDCBA</span>
</p>
<hr>
The following lines should be identical:
<p>
דהו([‪‬אבג
</p>
<p>
דהו([<span dir="ltr"></span>אבג
</p>
<p>
דהו([<span dir="ltr"><span></span></span>אבג
</p>
<p>
דהו([<span><span dir="ltr"></span></span>אבג
</p>
</body>
</html>