white-space-collapsing-bidi-001

White-space collapsing and the bidi algorithm

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: White-space collapsing and the bidi algorithm</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/text/white-space/normal/collapsing/bidi/001.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#egbidiwscollapse">
 8   <style type="text/css">
 9    .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10    td { background: red; padding: 0; border: solid; }
11    .test span { color: aqua; background: yellow; font: 2em/1 Ahem; white-space: normal; }
12    .reference .block { color: aqua; background: red; font: 2em/1 Ahem; white-space: normal; }
13    .reference .space { color: yellow; background: red; font: 2em/1 Ahem; white-space: normal; }
14   </style>
15  </head>
16  <body>
17   <div class="control">Ahem_font_required_for_this_test.</div>
18   <p> The two block below should look identical with no red present. (Force bidi: א) </p>
19   <table>
20    <tr><td class="test"><span>x &#x202E; x &#x202C; x</span></td></tr>
21    <tr><td class="reference"><span class="block">x</span><span class="space">x</span><span class="space">x</span><span class="block">x</span><span class="block">x</span></td></tr>
22   </table>
23  </body>
24 </html>