line-height-4-ref.html 661 B

12345678910111213141516
  1. <title>Bug 1134206 - Ruby line spacing adjustment on quirks mode</title>
  2. <script type="text/javascript" src="utils.js"></script>
  3. <div id="base">
  4. <span id="inline">base</span>
  5. <span id="text1" style="font-size: 80%; color: transparent">text</span>
  6. <span id="text2" style="font-size: 50%; color: transparent">text</span>
  7. </div>
  8. next line
  9. <script>
  10. // Simulate the behavior of ruby layout.
  11. var base = document.getElementById('base');
  12. makeBSizeMatchInlineBox(base, document.getElementById('inline'));
  13. base.style.paddingTop = getBSize(document.getElementById('text1'));
  14. base.style.paddingBottom = getBSize(document.getElementById('text2'));
  15. </script>