blob: 9ad64ad9c56b5cc1e6eee17e40081ac4b4c2462c [file] [log] [blame]
<style>
div {
font-family: Ahem;
font-size: 20px;
width: 220px;
}
span {
position: absolute;
}
</style>
<div><a id=foobar style="color: black" href="">select this text<span></span></a> but not this</div>
<pre id=result></pre>
<script>
if (window.internals)
internals.startTrackingRepaints();
if (window.testRunner)
testRunner.dumpAsText();
window.getSelection().selectAllChildren(foobar);
if (window.internals) {
result.innerText = internals.repaintRectsAsText();
internals.stopTrackingRepaints();
}
</script>