border-conflict-example-002

Border conflict resolution - borders are collapsed according to the precedence rules (example 2)

WeasyPrint

This browser

Flags
image
Assertion
Borders are collapsed according to the precedence rules (example from spec section 17.6.2.1).

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: Border conflict resolution - borders are collapsed according to the precedence rules (example 2)</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#border-conflict-resolution">
 7         <meta name="flags" content="image">
 8         <meta name="assert" content="Borders are collapsed according to the precedence rules (example from spec section 17.6.2.1).">
 9         <style type="text/css">
10         </style>
11     </head>
12     <body>
13         <table style="border-collapse: collapse; border: solid;">
14             <tr>
15                 <td style="border-right: hidden; border-bottom: hidden">foo</td>
16                 <td style="border: solid">bar</td>
17             </tr>
18             <tr>
19                 <td style="border: none">foo</td>
20                 <td style="border: solid">bar</td>
21             </tr>
22         </table>
23         <p>Test passes if the tables above has the same border outlines as the tables below. (Note: border and cell shading may vary between the two tables.)</p>
24         <div>
25             <img alt="Illustration of proper border collapsing (from spec)" src="support/border_conflict_example_002.png">
26         </div>
27     </body>
28 </html>