<!DOCTYPE html>
<html>
<style>
    body { margin: 0; }
    .dense {
        padding: 10px;
        line-height: 0.8em;
    }
</style>
<body>
<a href="#">Line<br/>Line<br/>Line<br/>Line</a>
<div class="dense">
    <a href="#">First line<br/>Loooonger line<br/>Short line<br/>Line</a>
</div>

<pre id="results"></pre>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.onload = function () {
    if (window.internals)
       results.textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_EVENT_REGION | internals.LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES);
};
</script>
</body>
</html>
