tor-browser

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

floats-wrap-bfc-008.html (859B)


      1 <!DOCTYPE html>
      2 <title>CSS Test: BFC root after 2 floats</title>
      3 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
      4 <link rel="help" href="https://drafts.csswg.org/css2/#floats">
      5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      6 <meta name="assert" content="
      7  The BFC root doesn't fit next to the 1st float, but fits next to the 2nd one,
      8  so it should be placed next to the 2nd one.">
      9 <style>
     10 .wrapper {
     11  width: 100px;
     12 }
     13 .float {
     14  float: left;
     15  height: 50px;
     16  background: green;
     17 }
     18 .bfc {
     19  overflow: hidden;
     20  width: 50px;
     21  height: 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" style="width: 100px"></div>
     28  <div class="float" style="width: 50px"></div>
     29  <div class="bfc" style=""></div>
     30 </div>