blob: a00cdc1845cfd3a81e11f6cb6299a7675f73a4ed [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
window.jsTestIsAsync = true;
function runTest() {
var bounds = file_input_element.getBoundingClientRect();
var range = document.caretRangeFromPoint(bounds.left + 10, bounds.top + 10);
var shadow_tree_container = range.commonAncestorContainer;
shadow_tree_container.prepend("foo");
file_input_element.disabled = true;
testPassed("Passes if we did not debug assert.");
finishJSTest();
}
</script>
</head>
<body onload="runTest()">
<input type="file" id="file_input_element" style="position:absolute; height: 100px; width: 100px;">
</body>
</html>