bidi-003

The bidi algorithm and inlines in CSS

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en">
 3  <head>
 4   <title>CSS Test: The bidi algorithm and inlines in CSS</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/bidi/003.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model">
10   <link rel="help" href="http://unicode.org/reports/tr9/">
11   <style type="text/css">
12    div p { white-space: nowrap; border: solid; margin: 1em; padding: 0.5em; background: #FFFFCC; color: black; }
13    .test { border: solid; padding: 0.4em 1em; line-height: 3em; }
14    .control { line-height: 3em; }
15    .control.start { border-style: solid none solid solid; padding: 0.4em 0 0.4em 1em;  }
16    .control.end { border-style: solid solid solid none; padding: 0.4em 1em 0.4em 0;  }
17    .a { color: navy; }
18    .b { color: orange; }
19   </style>
20  </head>
21  <body>
22   <p> The following two blocks should be identical, including overflow. (Force bidi: א) </p>
23   <div>
24    <p>
25     <span class="control a start"> aaa bbb ccc </span>
26     <span class="control b start"> ddd eee fff </span>
27                                    ggg hhh iii
28     <span class="control a end">   jjj kkk lll </span>
29     <span class="control b end">   mmm nnn ooo </span>
30    </p>
31    <p>
32     <span class="test a"> aaa bbb ccc &#x202E; lll kkk jjj </span> iii hhh ggg <span class="test b"> fff eee ddd &#x202C; mmm nnn ooo </span>
33    </p>
34   </div>
35  </body>
36 </html>