tor-browser

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

br-clear-all-001.html (1310B)


      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: 100px;
     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.</p>
     36 <div id="float"></div>
     37 <div id="container" data-expected-height="150">
     38  <ruby>
     39    <div></div>
     40    <rt>
     41      <div></div>
     42    </rt>
     43  </ruby>
     44  <br clear="all">
     45 </div>
     46 <script src="/resources/testharness.js"></script>
     47 <script src="/resources/testharnessreport.js"></script>
     48 <script src="/resources/check-layout-th.js"></script>
     49 <script>
     50  checkLayout("#container");
     51 </script>