tor-browser

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

abspos-028.xht (1235B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: Abspos static position and clear</title>
      5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/"/>
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-11 -->
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height"/>
      8   <link rel="match" href="abspos-028-ref.xht" />
      9 
     10   <meta name="assert" content="The static position is calculated as if clear
     11     had been none."/>
     12   <style type="text/css">
     13     .container {
     14       width: 6em;
     15       height: 1em;
     16       background: red;
     17     }
     18     .float {
     19       float: left;
     20       width: 1em;
     21       height: 4em;
     22       background: white;
     23     }
     24     .abspos {
     25       position: absolute;
     26       clear: both;
     27       width: 6em;
     28       height: 1em;
     29       background: green;
     30     }
     31   </style>
     32  </head>
     33  <body>
     34     <p>Test passes if there is a green stripe and <strong>no red</strong>.</p>
     35     <div class="container">
     36       <div class="float"></div>
     37       <div class="abspos"></div>
     38     </div>
     39  </body>
     40 </html>