blob: d2d4649f7e5d56898aa9e0b6de4e2ac73ce5d6b5 [file] [log] [blame]
<!doctype html>
<html>
<head>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByLineCommand();
moveSelectionLeftByCharacterCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<p>This tests to make sure that the caret is visible in the black background by getting the caret color from the color of the element(span) containing the text, not the root editable element(div) that has the contentEditable attribute.
</p>
<div contenteditable id="root" class="editing" style="background-color: black" >
<span id="test" style="color: white">Where is my caret?</span>
</div>
<script>
runEditingTest();
</script>
</body>
</html>