Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / style / 5046875-2.html
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>
3
4 <script>
5 if (window.internals)
6     internals.settings.setEditingBehavior('mac');
7 var div = document.getElementById("div");
8 var sel = window.getSelection();
9
10 sel.collapse(div, 0);
11 sel.modify("move", "forward", "paragraph");
12 sel.modify("extend", "forward", "word");
13
14 document.execCommand("JustifyLeft");
15 </script>