blob: c898667fc4dc66a5ccb0dcce4c710c5eeb691a2c [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
PASS if no crash.
<span id=span></span>
<span id=wrapper></span>
<textarea id=textarea onfocus="eventhandler()"></textarea>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
document.offsetHeight;
textarea.autofocus = true;
var iframe = document.createElement("iframe");
span.appendChild(iframe);
wrapper.appendChild(textarea);
requestAnimationFrame(() => {
if (window.testRunner)
testRunner.notifyDone();
});
iframe.contentDocument.caretRangeFromPoint();
function eventhandler() {
textarea.insertAdjacentElement("beforeBegin", span);
}
</script>
</body>
</html>