bidi-001

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/001.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    .test { border: solid; padding: 0.4em 1em; line-height: 3em; color: blue; }
13    .control { line-height: 3em; color: blue; }
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 lines should be identical. (Force bidi: א) </p>
20   <p> <span class="control a">AAABBBCCC</span>DDDEEEFFF<span class="control b">GGGHHHIII</span>JJJKKKLLL </p>
21   <p> <span class="test"> AAABBBCCC&#x202E;IIIHHHGGG</span>FFFEEEDDD&#x202C;JJJKKKLLL </p>
22  </body>
23 </html>