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-collapse and 'display: inherit' elements</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#propdef-border-collapse">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#borders">
8 <meta name="flags" content="">
9 <meta name="assert" content="Border-collapse does not apply to 'display: inherit' elements which do not inherit the value of 'table' or 'inline-table'.">
10 <style type="text/css">
11 #container
12 {
13 display: block;
14 }
15 .test
16 {
17 border-collapse: collapse;
18 display: inherit;
19 height: 100px;
20 width: 100px;
21 }
22 #top
23 {
24 border-bottom: 10px solid blue;
25 }
26 #bottom
27 {
28 border-top: 10px dotted orange;
29 }
30 </style>
31 </head>
32 <body>
33 <p>Test passes if below there is a horizontal solid blue line above a dotted orange line.</p>
34 <div id="container">
35 <div id="top" class="test"></div>
36 <div id="bottom" class="test"></div>
37 </div>
38 </body>
39 </html>