tor-browser

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

absolute-replaced-height-028.xht (1586B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Absolutely positioned inline-block replaced element with percentage based intrinsic height that cannot be resolved where 'top', 'bottom', 'margin-top' are not '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#abs-replaced-height" />
      7 		<link rel="match" href="absolute-replaced-height-014-ref.xht" />
      8 
      9         <meta name="assert" content="An absolutely positioned inline-block replaced element with a percentage height that cannot be resolved has no intrinsic height." />
     10         <style type="text/css">
     11             #div1
     12             {
     13                 position: relative;
     14             }
     15             div div
     16             {
     17                 border: solid green;
     18                 position: absolute;
     19                 top: 1in;
     20                 width: 300px;
     21             }
     22             iframe
     23             {
     24                 border: solid red;
     25                 bottom: 1in;
     26                 margin-bottom: auto;
     27                 margin-top: 0.5in;
     28                 position: absolute;
     29                 top: 0.5in;
     30                 width: auto;
     31             }
     32         </style>
     33     </head>
     34     <body>
     35         <p>Test passes if there is <strong>no red</strong>.</p>
     36         <div id="div1">
     37             <iframe height="50%"></iframe>
     38             <div></div>
     39         </div>
     40     </body>
     41 </html>