blob: 954ab48df1760648c50fe78d11d152d66c83d530 [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>
if (window.internals)
internals.setContinuousSpellCheckingEnabled(true);
var testElement = document.getElementById("test");
testElement.focus();
document.execCommand("InsertText", false, "mislllll");
document.execCommand("InsertText", false, " "); // Trigger spell checker
testElement.blur();
</script>
</body>
</html>