blob: bddb76ea8182d10f4730d1e28f81451affb4b399 [file] [log] [blame]
<p>This tests for a bug where left justifying a paragraph amongst several that are centered would left justify all of them. Only the second paragraph should be left justified. </p>
<div id="div" contenteditable="true" style="text-align:center;">foo<br>bar<div>baz</div></div>
<script>
if (window.internals)
internals.settings.setEditingBehavior('mac');
var div = document.getElementById("div");
var sel = window.getSelection();
sel.collapse(div, 0);
sel.modify("move", "forward", "paragraph");
sel.modify("extend", "forward", "word");
document.execCommand("JustifyLeft");
</script>