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: Table-caption elements establish a new block formatting context</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting">
7 <meta name="flags" content="">
8 <meta name="assert" content="Elements with display table-caption establish a new block formatting context.">
9 <style type="text/css">
10 div
11 {
12 width: 200px;
13 }
14 #div1
15 {
16 border: solid 5px black;
17 height: 200px;
18 }
19 div div
20 {
21 background: blue;
22 display: table-caption;
23 height: 100px;
24 }
25 </style>
26 </head>
27 <body>
28 <p>Test passes if the upper-half of the box below is blue.</p>
29 <div id="div1">
30 <div></div>
31 </div>
32 </body>
33 </html>