<DOCTYPE html>
<html DIR=RTL>
 <head>
  <meta charset=UTF-8>
  <title>BIDI Layout Testing</title>
 </head>
 <body>
  <h2>This is a testing for BiDi layout issues.</h2> 
<br> 
 
1 - No tag<br> 
2 - SPAN<br> 
3 - P<br> 
4 - DIV<br> 

<br> 
<b>Test1: No space</b><br> 
This is a testing for BiDi layout issues.<br> 
<span>This is a testing for BiDi layout issues.<br></span> 
<p>This is a testing for BiDi layout issues.<br></p> 
<div>This is a testing for BiDi layout issues.<br></div> 
<br><br> 
<b>Test2: 3 spaces at the end</b><br> 
This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br> 
<span>This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></span> 

<p>This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></p> 
<div>This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></div> 
<br><br> 
<b>Test3: 3 spaces at the beginning</b><br> 
&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br> 
<span>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br></span> 
<p>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br></p> 
<div>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.<br></div> 
<br><br> 

<b>Test4: 3 spaces at the end and the beginning</b><br> 
&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br> 
<span>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></span> 
<p>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></p> 
<div>&nbsp;&nbsp;&nbsp;This is a testing for BiDi layout issues.&nbsp;&nbsp;&nbsp;<br></div> 
 </body> 
</html>