tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

height-inherit-001.xht (1377B)


      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" />
     12 
     13   <meta name="assert" content="The computed height is inherited, even if
     14     the 'height' property does not apply."/>
     15   <style type="text/css"><![CDATA[
     16     .container {
     17       height: 100px;
     18       width: 100px;
     19       background: red;
     20     }
     21     .outer {
     22       height: 100px;
     23     }
     24     .inner {
     25       display: block;
     26       height: inherit;
     27       background: green;
     28     }
     29   ]]></style>
     30  </head>
     31  <body>
     32     <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     33 
     34     <div class="container">
     35       <div><span class="outer"><span class="inner"></span></span></div>
     36     </div>
     37  </body>
     38 </html>