Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<body>
  <pre id="log"></pre>
<script>
let values = [
  // https://drafts.csswg.org/css2/visudet.html#line-height
  'normal',
  '1',
  '12px',
  '100%',
];
let results = [];
for (let value of values) {
  let div = document.createElement('div');
  div.style.lineHeight = value;
  document.body.appendChild(div);
  let s = getComputedStyle(div);
  results.push(`${value} -> ${s.lineHeight}`);
}
log.textContent = results.join('\n');
</script>
</body>
Output

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

Dismiss x
public
Bin info
kojiishipro
0viewers