22 lines
600 B
HTML
22 lines
600 B
HTML
<!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>
|