Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / table-caption-optional-001.htm
blob9c110cf61c941c373e3409898d5154877e845d76
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: Tables with and without the optional caption</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#table-display">
7 <meta name="flags" content="may">
8 <meta name="assert" content="The table caption is optional - a table can be rendered with or without it.">
9 <style type="text/css">
10 .table
12 display: table;
14 .caption
16 display: table-caption;
18 .tr
20 display: table-row;
22 .td
24 background: black;
25 display: table-cell;
26 height: 50px;
27 width: 50px;
29 </style>
30 </head>
31 <body>
32 <p>Test passes if the top square below has "Filler Text" directly above it and the bottom square does not.</p>
33 <div class="table">
34 <div class="caption">Filler Text</div>
35 <div class="tr">
36 <div class="td"></div>
37 <div class="td"></div>
38 </div>
39 <div class="tr">
40 <div class="td"></div>
41 <div class="td"></div>
42 </div>
43 </div>
44 <div>&nbsp;</div>
45 <div class="table">
46 <div class="tr">
47 <div class="td"></div>
48 <div class="td"></div>
49 </div>
50 <div class="tr">
51 <div class="td"></div>
52 <div class="td"></div>
53 </div>
54 </div>
55 </body>
56 </html>