tor-browser

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

floats-clear-multicol-003.html (1357B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
      2 <title>CSS Float Test: Test the clear position after the floating elements breaking across multi-columns</title>
      3 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      4 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      5 <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
      6 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#flow-control">
      7 <link rel="match" href="floats-clear-multicol-000-ref.html">
      8 
      9 <style type="text/css">
     10 .multicol {
     11  margin: 1em;
     12  border: solid silver;
     13  width: 300px;
     14  column-width: 100px;
     15  column-gap: 0;
     16  column-fill: auto;
     17  height: 100px;
     18 }
     19 
     20 .step {
     21  height: 10px;
     22  border: 15px aqua;
     23  border-style: none solid;
     24 }
     25 .float {
     26  float: right;
     27  width: 15px;
     28  background: aqua;
     29  height: 240px;
     30 }
     31 .L {
     32  float: left;
     33 }
     34 
     35 .container {
     36  width: 100%;
     37  background: red;
     38 }
     39 
     40 .clear {
     41  clear: left;
     42  height: 0;
     43  background: red;
     44 }
     45 .bar {
     46  border-bottom: orange solid;
     47 }
     48 </style>
     49 
     50 <p>The orange line should be halfway down the third column
     51 (immediately after the end of the aqua lines).
     52 
     53 <div class="multicol">
     54  <div class="step"></div>
     55  <div class="container">
     56    <div class="float L"></div>
     57    <div class="float R"></div>
     58  </div>
     59  <div class="clear"><div class="bar"></div></div>
     60 </div>