bidi-004

The bidi algorithm and inlines in CSS

WeasyPrint

This browser

Flags
may

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/004.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   <meta name="flags" content="may">
12   <style type="text/css">
13    div p { float: left; clear: left; border: solid; margin: 1em; padding: 0.5em; background: #FFFFCC; color: black; }
14    .test { border: solid; padding: 0.4em 1em; line-height: 3em; }
15    .control { line-height: 3em; }
16    .control.start { border-style: solid none solid solid; padding: 0.4em 0 0.4em 1em;  }
17    .control.middle { border-style: solid none solid none; padding: 0.4em 0 0.4em 0;  }
18    .control.end { border-style: solid solid solid none; padding: 0.4em 1em 0.4em 0;  }
19    .a { color: navy; }
20    .b { color: orange; }
21   </style>
22  </head>
23  <body>
24   <p> The following two blocks should be identical, including overflow. (Force bidi: א) </p>
25   <div>
26    <p>
27     <span class="control a start"> aaa bbb ccc ddd eee </span> <br>
28     <span class="control b start"> fff                 </span>
29                                    ggg hhh iii
30     <span class="control a end">   jjj                 </span> <br>
31     <span class="control b end">   kkk lll mmm nnn ooo </span>
32    </p>
33    <p>
34     <span class="test a"> aaa         bbb          ccc &#x202E; eee                       ddd         <br>
35                           jjj </span> iii          hhh          ggg <span class="test b"> fff         <br>
36                           lll         kkk &#x202C; mmm          nnn                       ooo </span>
37    </p>
38   </div>
39  </body>
40 </html>