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: Inheriting Explicit Heights</title>
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">
7 <meta name="flags" content="">
8 <meta name="assert" content="The computed height is inherited, even if the 'height' property does not apply.">
9 <style type="text/css">
10 .container {
11 height: 100px;
12 width: 100px;
13 background: red;
14 }
15 .outer {
16 height: 100px;
17 }
18 .inner {
19 display: block;
20 height: inherit;
21 background: green;
22 }
23 </style>
24 </head>
25 <body>
26 <p>There must be a green box below and no red.</p>
27
28 <div class="container">
29 <div><span class="outer"><span class="inner"></span></span></div>
30 <div class="control"></div>
31 </div>
32 </body>
33 </html>