border-conflict-width-044

Border Conflict Resolution (by border width): 'hidden' vs. 'groove' - a border style of 'hidden' is always the dominant border

WeasyPrint

This browser

Assertion
The 'hidden' border style takes precedence over all style and width definitions.

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): 'hidden' vs. 'groove' - a border style of 'hidden' is always 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 'hidden' border style takes precedence over all style and width definitions.">
10         <style type="text/css">
11             table
12             {
13                 border-collapse: collapse;
14             }
15             td
16             {
17                 border: 5px hidden black;
18                 height: 3em;
19             }
20             #cell3
21             {
22                 border: 10px groove 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>hidden</td>
47                 <td id="cell1">hidden</td>
48                 <td>hidden</td>
49             </tr>
50             <tr>
51                 <td id="cell2">hidden</td>
52                 <td id="cell3">groove</td>
53                 <td id="cell4">hidden</td>
54             </tr>
55             <tr>
56                 <td>hidden</td>
57                 <td id="cell5">hidden</td>
58                 <td>hidden</td>
59             </tr>
60         </table>
61     </body>
62 </html>