collapsing-border-model-006

Table borders overflowing the table container (rtl)

WeasyPrint

This browser

Assertion
Borders that spill into a table margin can overflow that table's container.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Table borders overflowing the table container (rtl)</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Borders that spill into a table margin can overflow that table's container.">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13             }
14             td
15             {
16                 background: black;
17                 height: 1em
18             }
19             #div1
20             {
21                 background: black;
22                 direction: rtl;
23                 width: 2em;
24             }
25             #cell
26             {
27                 border-left: 1em solid black;
28                 border-right: 1em solid black;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if the upper-right corner of the box below is missing.</p>
34         <div id="div1">
35             <table>
36                 <tr>
37                     <td></td>
38                 </tr>
39                 <tr>
40                     <td id="cell"></td>
41                 </tr>
42             </table>
43         </div>
44     </body>
45 </html>