tor-browser

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

absolute-non-replaced-height-001.xht (1418B)


      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: Absolutely positioned, non-replaced elements, static position of fixed element</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-non-replaced-height" />
      7         <meta name="assert" content="The calculation of static position for a fixed positioned element when top, right, bottom, and left are all 'auto' is based off the containing block not the initial containing block." />
      8         <style type="text/css">
      9             html, body, p
     10             {
     11                 margin: 0;
     12                 padding: 0;
     13             }
     14             #div1
     15             {
     16                 border: solid black;
     17                 height: 2in;
     18                 position: absolute;
     19                 top: 1in;
     20                 width: 3in;
     21             }
     22             div div
     23             {
     24                 background: blue;
     25                 height: 1in;
     26                 position: fixed;
     27                 width: 1in;
     28             }
     29         </style>
     30     </head>
     31     <body>
     32         <p>Test passes the a filled blue square touches the upper-left corner of the black box.</p>
     33         <div id="div1">
     34             <div></div>
     35         </div>
     36     </body>
     37 </html>