tor-browser

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

position-relative-017.xht (1234B)


      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: Relative positioning and computed 'top'/'bottom' set to 'auto'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#relative-positioning" />
      7 		<link rel="match" href="position-relative-014-ref.xht" />
      8 
      9         <meta name="assert" content="Computed values are zero when both 'top' and 'bottom' are set to 'auto'." />
     10         <style type="text/css">
     11             div
     12             {
     13                 height: 1in;
     14                 width: 1in;
     15             }
     16             #div1
     17             {
     18                 background: blue;
     19                 height: 2in;
     20             }
     21             div div
     22             {
     23                 background: orange;
     24                 position: relative;
     25                 top: auto;
     26                 bottom: auto;
     27             }
     28         </style>
     29     </head>
     30     <body>
     31         <p>Test passes if a blue square is directly below an orange square.</p>
     32         <div id="div1">
     33             <div></div>
     34         </div>
     35     </body>
     36 </html>