tor-browser

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

floats-wrap-bfc-with-margin-006.tentative.html (829B)


      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  margin-left: 50px;
     10  background: red;
     11 }
     12 .float {
     13  float: right;
     14  clear: right;
     15  width: 25px;
     16  height: 50px;
     17  background: green;
     18 }
     19 .bfc {
     20  overflow: hidden;
     21  height: 50px;
     22  margin-left: -50px;
     23  background: green;
     24 }
     25 </style>
     26 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     27 <div class="wrapper">
     28  <div class="float"></div>
     29  <div class="bfc"></div>
     30  <div class="float"></div>
     31  <div class="bfc" style="width: 75px"></div>
     32 </div>