bidi-002

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/002.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://unicode.org/reports/tr9/">
10   <style type="text/css">
11    div p { width: 17em; border: solid; margin: 1em; padding: 0.5em; background: #FFFFCC; color: black; }
12    .test { border: solid; padding: 0.4em 1em; line-height: 3em; color: navy; }
13    .control { line-height: 3em; color: navy; }
14    .control.a { border-style: solid none solid solid; padding: 0.4em 0 0.4em 1em;  }
15    .control.b { border-style: solid solid solid none; padding: 0.4em 1em 0.4em 0;  }
16   </style>
17  </head>
18  <body>
19   <p> The following two blocks should be identical, including overflow. (Force bidi: א) </p>
20   <div>
21    <p>
22     <span class="control a">AAABBBCCC</span>DDDEEEFFF<span class="control b">GGGHHHIII</span>
23     JJJKKKLLLMMMNNNOOO
24    </p>
25    <p>
26     <span class="test">AAABBBCCC&#x202E;IIIHHHGGG</span>FFFEEEDDD
27     LLLKKKJJJ&#x202C;MMMNNNOOO
28    </p>
29   </div>
30  </body>
31 </html>