border-conflict-width-018

Border Conflict Resolution (by border width): 'dotted' vs. 'outset' - border style with largest width is the dominant border

WeasyPrint

This browser

Assertion
The widest border is dominant when two cell borders collapse.

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 (by border width): 'dotted' vs. 'outset' - border style with largest width is the dominant border</title>
 5         <link rel="author" title="W3C" href="http://www.w3c.org/">
 6         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The widest border is dominant when two cell borders collapse.">
10         <style type="text/css">
11             table
12             {
13                 border-collapse: collapse;
14             }
15             td
16             {
17                 border: 5px dotted black;
18                 height: 3em;
19             }
20             #cell3
21             {
22                 border: 10px outset black;
23             }
24             #cell1
25             {
26                 border-bottom-color: red;
27             }
28             #cell4
29             {
30                 border-left-color: red;
31             }
32             #cell5
33             {
34                 border-top-color: red;
35             }
36             #cell2
37             {
38                 border-right-color: red;
39             }
40         </style>
41     </head>
42     <body>
43         <p>Test passes if there is no red visible on the page.</p>
44         <table>
45             <tr>
46                 <td>dotted</td>
47                 <td id="cell1">dotted</td>
48                 <td>dotted</td>
49             </tr>
50             <tr>
51                 <td id="cell2">dotted</td>
52                 <td id="cell3">outset</td>
53                 <td id="cell4">dotted</td>
54             </tr>
55             <tr>
56                 <td>dotted</td>
57                 <td id="cell5">dotted</td>
58                 <td>dotted</td>
59             </tr>
60         </table>
61     </body>
62 </html>