blob: a45742c9ea8576c3567c7b472dd7b4312f189593 [file] [edit]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
window.jsTestIsAsync = true;
function runTest() {
var bounds = fileInputElement.getBoundingClientRect();
range = document.caretRangeFromPoint(bounds.left + 10, bounds.top + 10);
shouldBe("range.commonAncestorContainer", "fileInputElement");
finishJSTest();
}
</script>
</head>
<body onload="runTest()">
<input type="file" id="fileInputElement" style="position:absolute; height: 100px; width: 100px;">
</body>
</html>