Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-div-024.html
blob1b2a6e0f627a46a92d5d7a0170fc616b49fd7505
1 <html>
2 <head>
4 <style>
5 body {
6 font-size: 24px;
8 .editing {
9 border: 2px solid red;
10 padding: 12px;
12 p {
13 border: 2px solid blue;
14 padding: 12px;
16 br {
17 background-color: green;
20 </style>
21 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
23 <script>
25 function editingTest() {
26 for (i = 0; i < 6; i++)
27 extendSelectionForwardByCharacterCommand();
28 boldCommand();
29 moveSelectionForwardByCharacterCommand();
30 insertParagraphCommand();
31 boldCommand();
32 for (i = 0; i < 3; i++)
33 typeCharacterCommand();
34 insertParagraphCommand();
35 insertParagraphCommand();
36 for (i = 0; i < 3; i++)
37 typeCharacterCommand();
40 </script>
42 <title>Editing Test</title>
43 </head>
44 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
46 Test inserting paragraphs and managing typing style correctly: Only "line 1" should be bold. Other lines should be non-bold. Fix for this bug:
47 <a href="rdar://problem/3944492">&lt;rdar://problem/3944492&gt;</a> after pressing return twice, text is bold when it shouldn't be
48 <div style="height: 12px"></div>
50 <p id="test">line 1</p>
52 <script>
53 runEditingTest();
54 </script>
56 </body>
57 </html>