24 lines
787 B
HTML
24 lines
787 B
HTML
<head>
|
|
<script type="text/javascript" charset="utf-8">
|
|
if (window.testRunner)
|
|
testRunner.waitUntilDone();
|
|
function runTest()
|
|
{
|
|
var target = document.getElementById("target");
|
|
getSelection().setBaseAndExtent(target, 0, target.nextSibling, 1);
|
|
if (window.testRunner)
|
|
testRunner.notifyDone();
|
|
}
|
|
</script>
|
|
<style>
|
|
#target::selection { background-color: white; }
|
|
</style>
|
|
</head>
|
|
<body onload="setTimeout(runTest, 10)">
|
|
<div style="-webkit-transform: translateZ(0); margin-top: 50px; margin-left: 50px;">
|
|
<div id="target" style="background-color: red; width: 100px; height: 100px; position: absolute;"><br></div>a
|
|
</div>
|
|
<script>
|
|
</script>
|
|
</body>
|