tor-browser

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

floats-placement-001.html (885B)


      1 <!DOCTYPE html>
      2 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      3 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
      4 <meta name="assert" content="This test checks placement of inflow content with floats present." />
      5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      6 <div style="width: 100px; height: 100px; background: red; line-height: 0; position: relative;">
      7  <div style="float: left; width: 20px;"></div>
      8  <div style="float: right; width: 30px; height: 50px; background: green;"></div>
      9  <div style="float: right; clear: right; width: 100px; height: 50px; background: green;"></div>
     10  <div style="display: inline-block; width: 50px; height: 50px; background: green;"></div>
     11  <div style="position: absolute; width: 20px; height: 50px; top: 0; left: 50px; background: green;"></div>
     12 </div>