<p>This tests for a bug where centering text would prevent it from being right or left aligned again. The paragraph below should be right aligned.</p> | |
<div id="div" contenteditable="true">foo</div> | |
<script> | |
var div = document.getElementById("div"); | |
div.focus(); | |
document.execCommand("JustifyCenter"); | |
document.execCommand("JustifyRight"); | |
</script> |