1 <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>
2 <div id="div" contenteditable="true" style="text-align:center;">foo<br>bar<div>baz</div></div>
6 internals.settings.setEditingBehavior('mac');
7 var div = document.getElementById("div");
8 var sel = window.getSelection();
11 sel.modify("move", "forward", "paragraph");
12 sel.modify("extend", "forward", "word");
14 document.execCommand("JustifyLeft");