2015-01-08 08:02:41 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Bug 1069519 - Ruby line height calculation</title>
|
|
|
|
<link rel="stylesheet" href="common.css">
|
|
|
|
<script type="text/javascript" src="utils.js"></script>
|
|
|
|
</head>
|
|
|
|
<body style="line-height: 1">
|
2015-02-17 04:25:18 +03:00
|
|
|
<div id="base">
|
|
|
|
<span id="inline">base</span>
|
|
|
|
<span id="text" style="font-size: 50%; color: transparent">text</span>
|
|
|
|
</div>
|
2015-01-08 08:02:41 +03:00
|
|
|
<script>
|
|
|
|
// Simulate the behavior of ruby layout.
|
2015-02-17 04:25:18 +03:00
|
|
|
var base = document.getElementById('base');
|
2015-03-19 11:04:50 +03:00
|
|
|
makeBSizeMatchInlineBox(base, document.getElementById('inline'));
|
|
|
|
base.style.paddingTop = getBSize(document.getElementById('text'));
|
2015-01-08 08:02:41 +03:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|