tor-browser

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

floats-placement-008.html (1113B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Test the inline-block does not overlap with the float-right element.</title>
      4 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      5 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1805597">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      8 <style>
      9 .container {
     10  width: 100px;
     11  height: 100px;
     12  background-color: red;
     13  position: relative;
     14 }
     15 
     16 .inline-block {
     17  display: inline-block;
     18  width: 50px;
     19  height: 50px;
     20  background-color: green;
     21 }
     22 .float-right {
     23  float: right;
     24  width: 50px;
     25  height: 100px;
     26  background-color: green;
     27 }
     28 .float-left {
     29  width: 30px;
     30  height: 50px;
     31  clear: both;
     32  float: left;
     33 }
     34 </style>
     35 
     36 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     37 <div class="container">
     38  <div class="inline-block"></div><div class="float-right"></div><div class="float-left"></div>
     39  <div style="position: absolute; top: 50px; width: 50px; height: 50px; background-color: green"></div>
     40 </div>