tor-browser

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

br-clear-all-002.html (1430B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      3 <link rel="help" href="https://www.w3.org/TR/css-ruby-1/#rubypos">
      4 <link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br#deprecated_attributes">
      5 <style>
      6  #float {
      7    float: left;
      8    width: 100px;
      9    height: 100px;
     10    background: cyan;
     11  }
     12  #container {
     13    padding-bottom: 50px;
     14    line-height: 20px;
     15    background: yellow;
     16  }
     17  ruby {
     18    ruby-position: under;
     19  }
     20  ruby > div {
     21    display: inline-block;
     22    width: 20px;
     23    height: 20px;
     24    background: hotpink;
     25  }
     26  rt > div {
     27    display: inline-block;
     28    width: 50px;
     29    height: 150px;
     30    background: blue;
     31  }
     32 </style>
     33 <p>The yellow box should encompass its contents and also the cyan float, due to
     34  clearance. The yellow box has bottom padding, and the blue ruby annotation box
     35  is allowed to overflow into the padding area. In this case the blue box is so
     36  tall it will use the entire padding area, and also stretch the yellow box
     37  somewhat.</p>
     38 <div id="float"></div>
     39 <div id="container" data-expected-height="170">
     40  <ruby>
     41    <div></div>
     42    <rt>
     43      <div></div>
     44    </rt>
     45  </ruby>
     46  <br clear="all">
     47 </div>
     48 <script src="/resources/testharness.js"></script>
     49 <script src="/resources/testharnessreport.js"></script>
     50 <script src="/resources/check-layout-th.js"></script>
     51 <script>
     52  checkLayout("#container");
     53 </script>