border-conflict-style-054

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

WeasyPrint

This browser

Assertion
The 'groove' border is the dominant border when it is collapsed with an 'inset' border of the same size.

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): 'inset' vs. 'groove' - 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 'groove' border is the dominant border when it is collapsed with an 'inset' border of the same size.">
 9         <style type="text/css">
10             #table1
11             {
12                 margin-bottom: 20px;
13             }
14             #winner
15             {
16                 border: 5px groove black;
17                 width: 3em;
18             }
19             table
20             {
21                 border-collapse: collapse;
22             }
23             td
24             {
25                 border: 5px inset lime;
26                 height: 3em;
27                 width: 3em;
28             }
29             #center, #table1 td
30             {
31                 border: 5px groove lime;
32             }
33             #top
34             {
35                 border-top: 5px inset red;
36             }
37             #left
38             {
39                 border-left: 5px inset red;
40             }
41             #bottom
42             {
43                 border-bottom: 5px inset red;
44             }
45             #right
46             {
47                 border-right: 5px inset red;
48             }
49         </style>
50     </head>
51     <body>
52         <p>Test passes if the center box in the table below has a border similar to this:</p>
53         <table id="table1">
54             <tr>
55                 <td></td>
56             </tr>
57         </table>
58         <table>
59             <tr>
60                 <td>inset</td>
61                 <td id="bottom">inset</td>
62                 <td>inset</td>
63             </tr>
64             <tr>
65                 <td id="right">inset</td>
66                 <td id="center">groove</td>
67                 <td id="left">inset</td>
68             </tr>
69             <tr>
70                 <td>inset</td>
71                 <td id="top">inset</td>
72                 <td>inset</td>
73             </tr>
74         </table>
75     </body>
76 </html>