Bug 1729777 [wpt PR 30405] - Parsing for contain-intrinsic-size: auto <length>, a...
[gecko.git] / testing / web-platform / tests / css / CSS2 / normal-flow / height-inherit-001.xht
blob63f59a8cc921968ec6ba6fb999c554b5e3af7bb5
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2                       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5   <title>CSS Test: Inheriting Explicit Heights</title>
6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
7   <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 -->
8   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit"/>
9   <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inherit"/>
10   <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inherit"/>
11   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
13   <meta name="flags" content=""/>
14   <meta name="assert" content="The computed height is inherited, even if
15     the 'height' property does not apply."/>
16   <style type="text/css"><![CDATA[
17     .container {
18       height: 100px;
19       width: 100px;
20       background: red;
21     }
22     .outer {
23       height: 100px;
24     }
25     .inner {
26       display: block;
27       height: inherit;
28       background: green;
29     }
30   ]]></style>
31  </head>
32  <body>
33     <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
35     <div class="container">
36       <div><span class="outer"><span class="inner"></span></span></div>
37     </div>
38  </body>
39 </html>