border-conflict-style-015

Border Conflict Resolution (by border style): 'dotted' 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 'dotted' 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): 'dotted' 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 'dotted' border.">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13             }
14             td
15             {
16                 border: 5px dotted lime;
17                 height: 3em;
18                 width: 3em;
19             }
20             #center
21             {
22                 border: 5px hidden red;
23             }
24             #top
25             {
26                 border-top: 5px dotted red;
27             }
28             #left
29             {
30                 border-left: 5px dotted red;
31             }
32             #bottom
33             {
34                 border-bottom: 5px dotted red;
35             }
36             #right
37             {
38                 border-right: 5px dotted 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>dotted</td>
47                 <td id="bottom">dotted</td>
48                 <td>dotted</td>
49             </tr>
50             <tr>
51                 <td id="right">dotted</td>
52                 <td id="center">hidden</td>
53                 <td id="left">dotted</td>
54             </tr>
55             <tr>
56                 <td>dotted</td>
57                 <td id="top">dotted</td>
58                 <td>dotted</td>
59             </tr>
60         </table>
61     </body>
62 </html>