blob: 4e5db341de526c4f47b777f2f82a12962ebda104 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
div{
text-rendering: optimizeLegibility;
font-family: -apple-system, sans-serif;
}
</style>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<div id="target" contenteditable="true">Lorem ipsum</div>
<script>
description("This test makes sure that contenteditable with optical size doesn't hang the browser. The test passes if there is no hang when typing occurs in the contenteditable element.");
let target = document.getElementById("target");
target.focus();
document.execCommand("insertText", true, "asdf");
</script>
</body>
</html>