Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-div-023.html
blob10f9b44a2c0300c6f936a4795994fc68131d8be2
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 < 14; i++)
27 moveSelectionForwardByCharacterCommand();
28 insertParagraphCommand();
29 insertParagraphCommand();
30 typeCharacterCommand();
33 </script>
35 <title>Editing Test</title>
36 </head>
37 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
39 Test inserting paragraphs and managing typing style correctly: "x" under "line 2" should be bold. Fix for this bug:
40 <a href="rdar://problem/3939523">&lt;rdar://problem/3939523&gt;</a> in some cases, text does not retain style info after pressing return twice
41 <div style="height: 12px"></div>
43 <p id="test">line 1</p>
44 <p><br class="khtml-block-placeholder"></p>
45 <p><b>line 2</b></p>
46 <p><br class="khtml-block-placeholder"></p>
47 <p>line 3</p>
49 <script>
50 runEditingTest();
51 </script>
53 </body>
54 </html>