tor-browser

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

stack-floats-003.xht (1584B)


      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" lang="en">
      3  <head>
      4   <title>CSS Test: Stacking order: Floats and Blocks in Inlines</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/stacking/003.html" type="text/html"/>
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#layers" />
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
      9   <link rel="match" href="stack-floats-001-ref.xht" />
     10 
     11   <meta content="ahem" name="flags" />
     12 
     13   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14   <style type="text/css">
     15    /* outer block */
     16    .container { width: 5em; height: 5em; border: solid; font: 20px/1 Ahem; background: red; display: block; }
     17 
     18    /* top and bottom */
     19    .float { width: 5em; height: 3em; margin: -5em 0 0 0; padding: 1em 0; background: red; float: left; }
     20    .inline { color: lime; display: inline; }
     21 
     22    /* middle */
     23    .float .block { height: 3em; margin: 0; background: lime; display: block; }
     24    .inline .block { height: 3em; margin: 0; background: red; display: block; }
     25 
     26   </style>
     27  </head>
     28  <body>
     29   <p>Test passes if there is one single filled bright green square (with a black border) and no red.</p>
     30 
     31   <div class="container">
     32    <div class="inline">
     33     XXXXX
     34     <div class="block"></div>
     35     XXXXX
     36    </div>
     37    <div class="float">
     38     <div class="block"></div>
     39    </div>
     40   </div>
     41 
     42  </body>
     43 </html>