tor-browser

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

floats-154.xht (1049B)


      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: Stacking contexts of relatively positioned content inside floats</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/054.html" type="text/html"/>
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
      8   <link rel="match" href="floats-154-ref.xht" />
      9 
     10   <style type="text/css">
     11    body { font-size: 8em; }
     12    p { font-size: medium; }
     13    .float { float: left; height: 1em; width: 1em; margin-right: -1em; background: red; }
     14    .relative { position: relative; height: 1em; width: 1em; background: green; }
     15    .inline { color: red; }
     16   </style>
     17  </head>
     18  <body>
     19   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     20   <div class="float"><div class="relative"></div></div>
     21   <div class="inline">X</div>
     22  </body>
     23 </html>