Bug 1642501 [wpt PR 23903] - Add references to height inheritance tests, a=testonly
[gecko.git] / testing / web-platform / tests / css / CSS2 / normal-flow / min-height-applies-to-013.xht
blobec0137bba43dc40496ad6cd3a0f09748d410e1da
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3     <head>
4         <title>CSS Test: Min-height applied to elements with 'display' set to 'table'</title>
5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" />
7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" />
8         <link rel="match" href="../../reference/pass_if_square_96px_black.html" />
9         <meta name="flags" content="" />
10         <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table'." />
11         <style type="text/css">
12             #table
13             {
14                 display: table;
15                 table-layout: fixed;
16                 min-height: 1in;
17             }
18             #row
19             {
20                 display: table-row;
21                 height: inherit; /* height of the row is based on the computed value for height of the table which is based on the min-height property */
22             }
23             #cell
24             {
25                 background: black;
26                 display: table-cell;
27                 height: inherit;
28                 width: 1in;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if there is a square below.</p>
34         <div id="table">
35             <div id="row">
36                 <div id="cell"></div>
37             </div>
38         </div>
39     </body>
40 </html>