tor-browser

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

floats-placement-006.html (988B)


      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 }
     14 
     15 .inline-block {
     16  display: inline-block;
     17  width: 50px;
     18  height: 100px;
     19  background-color: green;
     20 }
     21 .float-right {
     22  float: right;
     23  width: 50px;
     24  height: 100px;
     25  background-color: green;
     26 }
     27 .float-left {
     28  width: 30px;
     29  height: 50px;
     30  clear: both;
     31  float: left;
     32 }
     33 </style>
     34 
     35 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     36 <div class="container">
     37  <div class="inline-block"></div><div class="float-right"></div><div class="float-left"></div>
     38 </div>