border-conflict-style-062

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

WeasyPrint

This browser

Assertion
The 'dotted' border is the dominant border when it is collapsed with a 'none' 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): 'none' vs. 'dotted' - 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 'dotted' border is the dominant border when it is collapsed with a 'none' border.">
 9         <style type="text/css">
10             #table1
11             {
12                 margin-bottom: 20px;
13             }
14             table
15             {
16                 border-collapse: collapse;
17             }
18             td
19             {
20                 border: 5px none red;
21                 height: 3em;
22                 width: 3em;
23             }
24             #center, #table1 td
25             {
26                 border: 5px dotted lime;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if the center box in the table below has a border similar to this:</p>
32         <table id="table1">
33             <tr>
34                 <td></td>
35             </tr>
36         </table>
37         <table>
38             <tr>
39                 <td>none</td>
40                 <td>none</td>
41                 <td>none</td>
42             </tr>
43             <tr>
44                 <td>none</td>
45                 <td id="center">dotted</td>
46                 <td>none</td>
47             </tr>
48             <tr>
49                 <td>none</td>
50                 <td>none</td>
51                 <td>none</td>
52             </tr>
53         </table>
54     </body>
55 </html>