blob: 76768fff09a1ab9435ef28a8f9b290bb4a397e69 [file] [log] [blame]
<p>This tests for a bug where the color of indented text couldn't be changed.</p>
<div id="div" contenteditable="true"><br></div>
<script>
var div = document.getElementById("div");
div.focus();
document.execCommand("InsertText", false, "This text should be blue.");
document.execCommand("SelectAll");
document.execCommand("ForeColor", false, "red");
document.execCommand("Indent");
document.execCommand("ForeColor", false, "blue");
</script>