tor-browser

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

block-non-replaced-height-003.xht (1445B)


      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: Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" />
      7         <meta name="assert" content="The 'height' is the 'height' of the child block box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'." />
      8         <style type="text/css">
      9             div
     10             {
     11                 position: relative;
     12             }
     13             div div
     14             {
     15                 width: 1in;
     16             }
     17             #div1 div
     18             {
     19                 background: blue;
     20                 height: 2in;
     21             }
     22             #div2
     23             {
     24                 background: orange;
     25                 height: 2in;
     26                 left: 1in;
     27                 position: absolute;
     28                 top: 0;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if the blue and orange boxes below are the same height.</p>
     34         <div>
     35             <div id="div1">
     36                 <div></div>
     37             </div>
     38             <div id="div2"></div>
     39         </div>
     40     </body>
     41 </html>