<html>
<head>
<style>
::selection,
::selection:window-inactive {
background-color: rgb(176, 176, 176);
color: black;
}
</style>
<script>
function doTest()
{
var range = document.createRange();
range.selectNode(document.getElementById("target"));
document.getSelection().addRange(range);
}
</script>
</head>
<body onload="doTest()">
<div>
<p>
For <a href="https://bugs.webkit.org/show_bug.cgi?id=32123">Bug 32123</a>.
Hightlight for Selection should fit the target line.
</p>
<span>a</span><div id="target">should just select me</div><span>c</span>
</div>
</body>
</html>