blob: 6424daca90c9dddd7fa51a33a864b1fb0fd90c9f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
font-family: Ahem;
src: url("../../resources/Ahem.ttf");
}
#test {
font-family: Ahem;
-webkit-hyphens: auto;
hypens: auto;
width: 100px;
}
</style>
</head>
<body>
<div id="test" contenteditable="true"></div>
<script>
var testElement = document.getElementById("test");
testElement.focus();
document.execCommand("InsertText", false, "mislllll");
document.execCommand("InsertText", false, " "); // Trigger spell checker
testElement.blur();
</script>
</body>
</html>