tor-browser

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

position-absolute-003.xht (1423B)


      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: Absolute position element taken out of flow</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#absolute-positioning" />
      7 		<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
      8 
      9         <meta name="assert" content="Absolute positioned elements are taken out of the normal flow when they have explicit offsets." />
     10         <style type="text/css">
     11             #div1
     12             {
     13                 height: 100px;
     14                 position: relative;
     15                 width: 200px;
     16             }
     17             #div2, #div3
     18             {
     19                 height: 100px;
     20                 width: 100px;
     21             }
     22             #div2
     23             {
     24                 background: red;
     25             }
     26             #div3
     27             {
     28                 background: green;
     29                 position: absolute;
     30                 left: 0;
     31                 top: 0;
     32             }
     33         </style>
     34     </head>
     35     <body>
     36         <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     37         <div id="div1">
     38             <div id="div2"></div>
     39             <div id="div3"></div>
     40         </div>
     41     </body>
     42 </html>