tor-browser

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

line-height-1-ref.html (677B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4  <meta charset="UTF-8">
      5  <title>Bug 1069519 - Ruby line height calculation</title>
      6  <link rel="stylesheet" href="common.css">
      7  <script type="text/javascript" src="utils.js"></script>
      8 </head>
      9 <body style="font: 25px/1 Ahem">
     10  <div id="base">
     11    <span id="inline">base</span>
     12    <span id="text" style="font-size: 50%; color: transparent">text</span>
     13  </div>
     14  <script>
     15    // Simulate the behavior of ruby layout.
     16    var base = document.getElementById('base');
     17    makeBSizeMatchInlineBox(base, document.getElementById('inline'));
     18    base.style.paddingTop = getBSize(document.getElementById('text'));
     19  </script>
     20 </body>
     21 </html>