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</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 width: 2em;
23 }
24 #cell
25 {
26 border-left: 1em solid black;
27 border-right: 1em solid black;
28 }
29 </style>
30 </head>
31 <body>
32 <p>Test passes if the upper-left corner of the box below is missing.</p>
33 <div id="div1">
34 <table>
35 <tr>
36 <td></td>
37 </tr>
38 <tr>
39 <td id="cell"></td>
40 </tr>
41 </table>
42 </div>
43 </body>
44 </html>