border-conflict-style-085

Border Conflict Resolution (by border style): 'ridge' vs. 'hidden' - border with highest priority border style should dominate

WeasyPrint

This browser

Assertion
The 'hidden' border is the dominant border when it is collapsed with a 'ridge' border.

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 style): 'ridge' vs. 'hidden' - border with highest priority border style should dominate</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="">
 8         <meta name="assert" content="The 'hidden' border is the dominant border when it is collapsed with a 'ridge' border.">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13             }
14             td
15             {
16                 border: 5px ridge lime;
17                 height: 3em;
18                 width: 3em;
19             }
20             #center
21             {
22                 border: 5px hidden red;
23             }
24             #top
25             {
26                 border-top: 5px ridge red;
27             }
28             #left
29             {
30                 border-left: 5px ridge red;
31             }
32             #bottom
33             {
34                 border-bottom: 5px ridge red;
35             }
36             #right
37             {
38                 border-right: 5px ridge red;
39             }
40         </style>
41     </head>
42     <body>
43         <p>Test passes if the center box in the table below has no border.</p>
44         <table>
45             <tr>
46                 <td>ridge</td>
47                 <td id="bottom">ridge</td>
48                 <td>ridge</td>
49             </tr>
50             <tr>
51                 <td id="right">ridge</td>
52                 <td id="center">hidden</td>
53                 <td id="left">ridge</td>
54             </tr>
55             <tr>
56                 <td>ridge</td>
57                 <td id="top">ridge</td>
58                 <td>ridge</td>
59             </tr>
60         </table>
61     </body>
62 </html>