Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / 5046875-2.html
blobbddb76ea8182d10f4730d1e28f81451affb4b399
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>
4 <script>
5 if (window.internals)
6 internals.settings.setEditingBehavior('mac');
7 var div = document.getElementById("div");
8 var sel = window.getSelection();
10 sel.collapse(div, 0);
11 sel.modify("move", "forward", "paragraph");
12 sel.modify("extend", "forward", "word");
14 document.execCommand("JustifyLeft");
15 </script>