tor-browser

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

fractional-line-height.html (1170B)


      1 <!DOCTYPE html>
      2 <title>Container height calculation with fractional line height and fractional child height</title>
      3 <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
      4 <link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#line-height" title="10.8 Line height calculations: the 'line-height' and 'vertical-align' properties">
      5 <link rel="match" href="../../reference/nothing.html">
      6 <style>
      7  .container { float:left; overflow:auto; width:50px; }
      8  .container > span { display:inline-block; width:10px; }
      9 </style>
     10 <p>There should be nothing below.</p>
     11 
     12 <!-- None of these should not trigger a vertical scrollbar, because the height
     13     of the overflow:auto container is auto, so it should make room for
     14     whatever's inside. -->
     15 
     16 <div class="container" style="line-height:19.75px;">
     17  <span style="height:100.25px;"></span>
     18 </div>
     19 
     20 <div class="container" style="line-height:19.75px;">
     21  <span style="height:100.75px;"></span>
     22 </div>
     23 
     24 <div class="container" style="line-height:19.25px;">
     25  <span style="height:100.25px;"></span>
     26 </div>
     27 
     28 <div class="container" style="line-height:19.25px;">
     29  <span style="height:100.75px;"></span>
     30 </div>