| OLD | NEW |
| (Empty) | |
| 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.ne
t/contact"/> |
| 7 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/Browse
rBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inher
it"/> |
| 9 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> |
| 10 |
| 11 <meta name="flags" content=""/> |
| 12 <meta name="assert" content="The computed height is inherited, even if |
| 13 the 'height' property does not apply."/> |
| 14 <style type="text/css"><![CDATA[ |
| 15 .container { |
| 16 height: 100px; |
| 17 width: 100px; |
| 18 background: red; |
| 19 } |
| 20 .outer { |
| 21 height: 100px; |
| 22 } |
| 23 .inner { |
| 24 display: block; |
| 25 height: inherit; |
| 26 background: green; |
| 27 } |
| 28 ]]></style> |
| 29 </head> |
| 30 <body> |
| 31 <p>Test passes if there is a filled green square and <strong>no red</strong>
.</p> |
| 32 |
| 33 <div class="container"> |
| 34 <div><span class="outer"><span class="inner"></span></span></div> |
| 35 </div> |
| 36 </body> |
| 37 </html> |
| OLD | NEW |