tor-browser

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

floats-wrap-bfc-with-margin-007.tentative.html (807B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
      3 <link rel="help" href="https://drafts.csswg.org/css2/#floats">
      4 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      5 <meta name="assert" content="The BFC roots fit next to the floats, so they shouldn't be moved below.">
      6 <style>
      7 .wrapper {
      8  width: 50px;
      9  background: red;
     10 }
     11 .float {
     12  float: left;
     13  clear: left;
     14  width: 25px;
     15  height: 50px;
     16  background: green;
     17 }
     18 .bfc {
     19  overflow: hidden;
     20  height: 50px;
     21  margin-right: -50px;
     22  background: green;
     23 }
     24 </style>
     25 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     26 <div class="wrapper">
     27  <div class="float"></div>
     28  <div class="bfc"></div>
     29  <div class="float"></div>
     30  <div class="bfc" style="width: 75px"></div>
     31 </div>