tor-browser

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

inlines-013.xht (1655B)


      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: Inline box model: space taken by images before floats</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-26 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/013.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" />
      9   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-position"/>
     10   <link rel="match" href="inlines-013-ref.xht" />
     11 
     12   <meta name="flags" content="image"/>
     13 
     14   <style type="text/css">
     15   p {font: 1em/1.25 serif;}
     16    div { font: 64px/1 monospace; }
     17    #control1 { position: absolute; top: 100px; }
     18    #control2 { position: absolute; top: 164px; }
     19    #container { position: absolute; top: 100px; width: 0; } /* width: 0; so that the float can't arguably be on the first line */
     20    #test { float: left; }
     21   </style>
     22  </head>
     23  <body>
     24   <p>You should see the word PASS below, with the<br />
     25   word fail crossed out with Xs on the line below.</p>
     26   <div id="control1">PASS</div>
     27   <div id="control2">FAIL</div>
     28   <div id="container">
     29    <img src="support/1x1-white.png" alt="(image test failed)"/> <!-- this should generate a line box 64px high -->
     30    <div id="test">XXXX</div> <!-- this will overlap the PASS if it ends up on the previous line, otherwise it will overlap the fail -->
     31   </div>
     32  </body>
     33 </html>