collapsing-border-model-008

Right table border width under collapsing borders model

WeasyPrint

This browser

Assertion
The right border width of the table is half of the collapsed right border width of the last cell of the first row.

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: Right table border width under collapsing borders model</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="The right border width of the table is half of the collapsed right border width of the last cell of the first row.">
 9         <style type="text/css">
10             table
11             {
12                 background: blue;
13                 border-collapse: collapse;
14             }
15             col
16             {
17                 width: 1in;
18             }
19             td, #div1
20             {
21                 height: 1in;
22             }
23             td
24             {
25                 border-right: 1in solid blue;
26                 padding: 0;
27             }
28             #div1
29             {
30                 background: orange;
31                 width: 1.5in;
32             }
33         </style>
34     </head>
35     <body>
36         <p>Test passes if the orange and blue boxes below are the same width.</p>
37         <div id="div1"></div>
38         <table>
39             <col>
40             <tr>
41                 <td></td>
42             </tr>
43         </table>
44     </body>
45 </html>