white-space-collapsing-bidi-003

Trailing spaces in table cells

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: Trailing spaces in table cells</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/003.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model">
 8   <style type="text/css">
 9    .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10    td { border: solid; padding: 0; background: red; font: 1em/1 Ahem; color: green; white-space: normal; }
11   </style>
12  </head>
13  <body>
14   <div class="control">Ahem_font_required_for_this_test.</div>
15   <p>There should be six identical boxes below with no red.</p>
16   <table><tr><td>XXX </td></tr></table>
17   <table><tr><td> XXX</td></tr></table>
18   <table><tr><td> XXX </td></tr></table>
19   <table dir="rtl"><tr><td>XXX </td></tr></table>
20   <table dir="rtl"><tr><td> XXX</td></tr></table>
21   <table dir="rtl"><tr><td> XXX </td></tr></table>
22  </body>
23 </html>