blob: 93ae90165eb498e9c8ad9fda3955c75fbea0a0c3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
</head>
<body style="margin: 0px;">
<div id="text" style="font: 20px Ahem; width: 700px;">pppppppppppppp
<div style="font-family: Times;">This test makes sure that hit-testing in a scrolled overflow:scroll area works as expected. The test succeeds if the first character is selected.</div>
</div>
<script>
var text = document.getElementById("text").childNodes[0];
var selection = window.getSelection();
selection.removeAllRanges();
var range = document.createRange();
range.setStart(text, 0);
range.setEnd(text, 1);
selection.addRange(range);
</script>
</body>
</html>