Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div id="d1" style="font-size: 5px">
    <div id="d2" style="font-size: 10px">
      <span id="s1" style="font-size: 15px">
        <span id="s2" style="font-size: 20px">text</span>
      </span>
    </div>
  </div>
  <pre id="log"></pre>
<script>
log.textContent = ["d1", "d2", "s1", "s2"]
    .map(id => {
      let e = document.getElementById(id);
      return `${id}=${getComputedStyle(e).lineHeight}`;
    }).join("\n");
</script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
kojiishipro
0viewers