tor-browser

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

absolute-replaced-height-032.xht (1866B)


      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: Absolute positioned inline-block replaced element without intrinsic ratio, 'height' set to 'auto' and over-constrained values</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-09-05 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-replaced-height" />
      8 		<link rel="match" href="absolute-replaced-height-011-ref.xht" />
      9 
     10         <meta name="assert" content="For an absolutely positioned inline-block replaced element, the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width. And with over-constrained values element solves for 'bottom'." />
     11         <style type="text/css">
     12             div
     13             {
     14                 position: relative;
     15             }
     16             div div
     17             {
     18                 border: solid green;
     19                 height: 150px;
     20                 position: absolute;
     21                 top: 1in;
     22                 width: 300px;
     23             }
     24             iframe
     25             {
     26                 border: solid red;
     27                 bottom: 1in;
     28                 height: auto;
     29                 margin-bottom: 0.5in;
     30                 margin-top: 0.5in;
     31                 position: absolute;
     32                 top: 0.5in;
     33                 width: auto;
     34             }
     35         </style>
     36     </head>
     37     <body>
     38         <p>Test passes if there is <strong>no red</strong>.</p>
     39         <div>
     40             <iframe></iframe>
     41             <div></div>
     42         </div>
     43     </body>
     44 </html>