tor-browser

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

inline-block-non-replaced-height-001.xht (1658B)


      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: Inline-block non-replaced element with 'margin-top', margin-bottom' set to 'auto' and 'height' relying on the descendants</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6 		<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-10 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-root-margin" />
      8 		<link rel="match" href="height-percentage-001-ref.xht" />
      9 
     10         <meta name="assert" content="If 'height' is 'auto' on an inline-block non-replaced element then the 'height' depends on the descendants." />
     11         <style type="text/css">
     12             #div1
     13             {
     14                 position: relative;
     15             }
     16             #div2
     17             {
     18                 background: blue;
     19                 display: inline-block;
     20             }
     21             #div2 div, #div3
     22             {
     23                 height: 1in;
     24                 width: 1in;
     25             }
     26             #div3
     27             {
     28                 background: orange;
     29                 left: 1in;
     30                 position: absolute;
     31                 top: 0;
     32             }
     33         </style>
     34     </head>
     35     <body>
     36         <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p>
     37         <div id="div1">
     38             <div id="div2">
     39                 <div></div>
     40             </div>
     41             <div id="div3"></div>
     42         </div>
     43     </body>
     44 </html>